mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Add footnotes support (#156)
This commit is contained in:
parent
c8709eecd1
commit
2251e8ad8a
@ -125,7 +125,8 @@ func CompileMarkdown(
|
||||
bf.Titleblock|
|
||||
bf.BackslashLineBreak|
|
||||
bf.DefinitionLists|
|
||||
bf.NoEmptyLineBeforeBlock,
|
||||
bf.NoEmptyLineBeforeBlock|
|
||||
bf.Footnotes,
|
||||
),
|
||||
)
|
||||
|
||||
|
12
pkg/mark/testdata/links.html
vendored
12
pkg/mark/testdata/links.html
vendored
@ -1,3 +1,15 @@
|
||||
<p>Use <a href="https://example.com">https://example.com</a></p>
|
||||
|
||||
<p>Use <ac:rich-text-body>aaa</ac:rich-text-body></p>
|
||||
|
||||
<p>Use footnotes link <sup class="footnote-ref" id="fnref:1"><a href="#fn:1">1</a></sup></p>
|
||||
|
||||
<div class="footnotes">
|
||||
|
||||
<hr />
|
||||
|
||||
<ol>
|
||||
<li id="fn:1">a footnote link</li>
|
||||
</ol>
|
||||
|
||||
</div>
|
||||
|
3
pkg/mark/testdata/links.md
vendored
3
pkg/mark/testdata/links.md
vendored
@ -1,3 +1,6 @@
|
||||
Use <https://example.com>
|
||||
|
||||
Use <ac:rich-text-body>aaa</ac:rich-text-body>
|
||||
|
||||
Use footnotes link [^1]
|
||||
[^1]: a footnote link
|
Loading…
x
Reference in New Issue
Block a user