Skip to content

Commit ed2a5ba

Browse files
sy-recordsLinkinStars
authored andcommitted
feat: add footnote extension to markdown converter
1 parent 4b9fd39 commit ed2a5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/converter/markdown.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
// Markdown2HTML convert markdown to html
4141
func Markdown2HTML(source string) string {
4242
mdConverter := goldmark.New(
43-
goldmark.WithExtensions(&DangerousHTMLFilterExtension{}, extension.GFM),
43+
goldmark.WithExtensions(&DangerousHTMLFilterExtension{}, extension.GFM, extension.Footnote),
4444
goldmark.WithParserOptions(
4545
parser.WithAutoHeadingID(),
4646
),

0 commit comments

Comments
 (0)