Skip to content

Commit

Permalink
cmd/scriggo: add extension.Footnote to goldmark
Browse files Browse the repository at this point in the history
This change integrates the extension.Footnote extension into goldmark,
enabling support for footnotes in markdown parsing.
  • Loading branch information
gazerro committed Dec 1, 2024
1 parent 0fc1e83 commit b8a4eed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/scriggo/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ func serve(asm int, metrics bool) error {
md := goldmark.New(
goldmark.WithRendererOptions(html.WithUnsafe()),
goldmark.WithParserOptions(parser.WithAutoHeadingID()),
goldmark.WithExtensions(extension.GFM))
goldmark.WithExtensions(extension.GFM),
goldmark.WithExtensions(extension.Footnote))

srv := &server{
fsys: fsys,
Expand Down

0 comments on commit b8a4eed

Please sign in to comment.