Documentation
¶
Index ¶
- Variables
- func NewIncludeHTMLRenderer(conv ConvertHtmlFunc, ps PathStack) renderer.NodeRenderer
- func NewMsInclude(conv ConvertHtmlFunc, pstack PathStack) goldmark.Extender
- func NewMsIncludeParser() parser.InlineParser
- type ConvertHtmlFunc
- type IncludeHTMLRenderer
- type IncludeNode
- type PathStack
- type SlicePathStack
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 IncludeHTMLRenderer ¶
type IncludeHTMLRenderer struct {
// contains filtered or unexported fields
}
func (*IncludeHTMLRenderer) RegisterFuncs ¶
func (r *IncludeHTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
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 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
Click to show internal directories.
Click to hide internal directories.