mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-25 05:44:06 -06:00
1.2 KiB
1.2 KiB
goldmark-wikilink is an extension for the goldmark Markdown parser that
supports parsing [[...]]-style wiki links.
Usage
To use goldmark-wikilink, import the wikilink package.
import wikilink "github.com/abhinav/goldmark-wikilink"
Then include the wiklink.Extender in the list of extensions you build your
goldmark.Markdown with.
goldmark.New(
&wiklink.Extender{}
// ...
)
goldmark-wikilink provides control over destinations of wikilinks with the
Resolver type. Specify a custom Resolver to the Extender when installing
it.
goldmark.New(
&wiklink.Extender{
Resolver: myresolver,
}
// ...
)