Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var KindWikilink = ast.NewNodeKind("Wikilink")
KindWikilink is a NodeKind of the Wikilink node.
Functions ¶
func NewHTMLRenderer ¶
func NewHTMLRenderer() renderer.NodeRenderer
NewHTMLRenderer builds a new HTMLRenderer with given options and returns it.
Types ¶
type FilenameNormalizer ¶
FilenameNormalizer is a plugin which takes link text and converts the text given to a filename which can be linked to in the final format of your file.
type HTMLRenderer ¶
type HTMLRenderer struct{}
HTMLRenderer struct is a renderer.NodeRenderer implementation for the extension.
func (*HTMLRenderer) RegisterFuncs ¶
func (r *HTMLRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)
RegisterFuncs implements NodeRenderer.RegisterFuncs.
type Option ¶ added in v1.3.0
type Option func(*wlExtension)
Option is a functional option type for this extension.
type Parser ¶ added in v1.3.0
type Parser struct {
// contains filtered or unexported fields
}
Parser keeps track of the plugins used for processing wikilinks.
func NewParser ¶
func NewParser() *Parser
NewParser gives you back a parser that you can use to process wikilinks.
func (*Parser) Parse ¶ added in v1.3.0
Parse implements the parser.Parser interface for Wikilinks in markdown
func (*Parser) WithNormalizer ¶ added in v1.3.0
func (p *Parser) WithNormalizer(fn FilenameNormalizer) *Parser
WithNormalizer is the fluent interface for replacing the default normalizer plugin.