ms_include

package
v1.20260818.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverlyNestedInclude = errors.New("overly nested include")
View Source
var ErrRecursiveInclude = errors.New("recursive include")
View Source
var KindInclude = ast.NewNodeKind("Include")

Functions

func NewIncludeHTMLRenderer

func NewIncludeHTMLRenderer(conv ConvertHtmlFunc, ps PathStack) renderer.NodeRenderer

func NewMsInclude

func NewMsInclude(conv ConvertHtmlFunc, pstack PathStack) goldmark.Extender

func NewMsIncludeParser

func NewMsIncludeParser() parser.InlineParser

NewMsIncludeParser return a new InlineParser that parses include.

Types

type ConvertHtmlFunc

type ConvertHtmlFunc func(abs_file string, w io.Writer) error

type IncludeHTMLRenderer

type IncludeHTMLRenderer struct {
	// contains filtered or unexported fields
}

func (*IncludeHTMLRenderer) RegisterFuncs

type IncludeNode

type IncludeNode struct {
	ast.BaseInline
	Destination []byte
	Title       []byte
	Link        []byte
}

func NewIncludeNode

func NewIncludeNode() *IncludeNode

func (*IncludeNode) Dump

func (n *IncludeNode) Dump(source []byte, level int)

func (*IncludeNode) Kind

func (n *IncludeNode) Kind() ast.NodeKind

type PathStack

type PathStack interface {
	Cwd() string
	Push(file string) error
	Pop()
}

type SlicePathStack

type SlicePathStack struct {
	// contains filtered or unexported fields
}

func NewSlicePathStack

func NewSlicePathStack(start_file string) *SlicePathStack

func (*SlicePathStack) Contains

func (ps *SlicePathStack) Contains(file string) bool

func (*SlicePathStack) Cwd

func (ps *SlicePathStack) Cwd() string

func (*SlicePathStack) Depth

func (ps *SlicePathStack) Depth() int

func (*SlicePathStack) Pop

func (ps *SlicePathStack) Pop()

func (*SlicePathStack) Push

func (ps *SlicePathStack) Push(file string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL