Versions in this module Expand all Collapse all v0 v0.3.0 Jun 4, 2024 Changes in this version + func IncludedNode(n ast.Node) (ast.Node, bool) + func IncludedSource(n ast.Node) ([]byte, bool) v0.2.0 Feb 12, 2024 Changes in this version type NodeTransformer + SourceURL *url.URL v0.1.0 Feb 9, 2024 Changes in this version + const Type + type MarkdownRenderer struct + Cache *SourceCache + func (mr *MarkdownRenderer) Render(r *markdown.Render, directive *directive.Node, entering bool) (ast.WalkStatus, error) + type Node struct + func (n *Node) AppendChild(self ast.Node, child ast.Node) + func (n *Node) Attribute(name []byte) (interface{}, bool) + func (n *Node) AttributeString(name string) (interface{}, bool) + func (n *Node) Attributes() []ast.Attribute + func (n *Node) ChildCount() int + func (n *Node) Dump(source []byte, level int) + func (n *Node) FirstChild() ast.Node + func (n *Node) HasBlankPreviousLines() bool + func (n *Node) HasChildren() bool + func (n *Node) InsertAfter(self ast.Node, v1 ast.Node, insertee ast.Node) + func (n *Node) InsertBefore(self ast.Node, v1 ast.Node, insertee ast.Node) + func (n *Node) IsRaw() bool + func (n *Node) Kind() ast.NodeKind + func (n *Node) LastChild() ast.Node + func (n *Node) Lines() *text.Segments + func (n *Node) NextSibling() ast.Node + func (n *Node) OwnerDocument() *ast.Document + func (n *Node) Parent() ast.Node + func (n *Node) PreviousSibling() ast.Node + func (n *Node) RemoveAttributes() + func (n *Node) RemoveChild(self ast.Node, child ast.Node) + func (n *Node) RemoveChildren(self ast.Node) + func (n *Node) ReplaceChild(self ast.Node, v1 ast.Node, insertee ast.Node) + func (n *Node) SetAttribute(name []byte, value interface{}) + func (n *Node) SetAttributeString(name string, value interface{}) + func (n *Node) SetBlankPreviousLines(v bool) + func (n *Node) SetLines(segments *text.Segments) + func (n *Node) SetNextSibling(next ast.Node) + func (n *Node) SetParent(parent ast.Node) + func (n *Node) SetPreviousSibling(ast.Node) + func (n *Node) SortChildren(comparator func(n1 ast.Node, n2 ast.Node) int) + func (n *Node) Text(source []byte) []byte + func (n *Node) Type() ast.NodeType + type NodeRenderer struct + Cache *SourceCache + Renderer renderer.Renderer + func (r *NodeRenderer) Render(writer util.BufWriter, source []byte, node *directive.Node) + type NodeTransformer struct + BasePath string + Cache *SourceCache + Parser parser.Parser + func (t *NodeTransformer) Transform(node *directive.Node, reader text.Reader, pc parser.Context) + type SourceCache struct + func NewSourceCache() *SourceCache + func (c *SourceCache) Get(path string) ([]byte, ast.Node, bool) + func (c *SourceCache) Set(path string, data []byte, node ast.Node)