mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
| .. | ||
| .github/workflows | ||
| testdata | ||
| .gitignore | ||
| ast_test.go | ||
| ast.go | ||
| CHANGELOG.md | ||
| extender.go | ||
| go.mod | ||
| go.sum | ||
| integration_test.go | ||
| LICENSE | ||
| Makefile | ||
| parser_test.go | ||
| parser.go | ||
| README.md | ||
| renderer_test.go | ||
| renderer.go | ||
| resolver_test.go | ||
| resolver.go | ||
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,
}
// ...
)