diff --git a/pkg/mark/markdown.go b/pkg/mark/markdown.go index de418b8..06c2128 100644 --- a/pkg/mark/markdown.go +++ b/pkg/mark/markdown.go @@ -125,7 +125,8 @@ func CompileMarkdown( bf.Titleblock| bf.BackslashLineBreak| bf.DefinitionLists| - bf.NoEmptyLineBeforeBlock, + bf.NoEmptyLineBeforeBlock| + bf.Footnotes, ), ) diff --git a/pkg/mark/testdata/links.html b/pkg/mark/testdata/links.html index 295c740..4a3293e 100644 --- a/pkg/mark/testdata/links.html +++ b/pkg/mark/testdata/links.html @@ -1,3 +1,15 @@

Use https://example.com

Use aaa

+ +

Use footnotes link 1

+ +
+ +
+ +
    +
  1. a footnote link
  2. +
+ +
diff --git a/pkg/mark/testdata/links.md b/pkg/mark/testdata/links.md index 7ef24fa..f814795 100644 --- a/pkg/mark/testdata/links.md +++ b/pkg/mark/testdata/links.md @@ -1,3 +1,6 @@ Use Use aaa + +Use footnotes link [^1] +[^1]: a footnote link \ No newline at end of file