diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2023-09-03 08:09:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-03 16:09:36 +0200 |
commit | c5495f40d5d881e6bd155c9e6c9c6e5e49b749a7 (patch) | |
tree | 961e73fccfcc15efc6bc1367352c85253910b523 /tests/stdlib/trstgen.nim | |
parent | 480e98c479035a8a19ff543bace3616d202e1ea2 (diff) | |
download | Nim-c5495f40d5d881e6bd155c9e6c9c6e5e49b749a7.tar.gz |
docgen: add Pandoc footnotes (fixes #21080) (#22591)
This implements Pandoc Markdown-style footnotes, that are compatible with Pandoc referencing syntax: Ref. [^ftn]. [^ftn]: Block. See https://pandoc.org/MANUAL.html#footnotes for more examples.
Diffstat (limited to 'tests/stdlib/trstgen.nim')
-rw-r--r-- | tests/stdlib/trstgen.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stdlib/trstgen.nim b/tests/stdlib/trstgen.nim index 8c68f68c9..934403665 100644 --- a/tests/stdlib/trstgen.nim +++ b/tests/stdlib/trstgen.nim @@ -1128,7 +1128,7 @@ Test1 Paragraph2 ref `internal anchor`_. """ - let output9 = input9.toHtml + let output9 = input9.toHtml(preferRst) # _`internal anchor` got erased: check "href=\"#internal-anchor\"" notin output9 check "href=\"#citation-another\"" in output9 @@ -1156,7 +1156,7 @@ Test1 doAssert "<a href=\"#citation-third\">[Third]</a>" in output10 let input11 = ".. [note]\n" # should not crash - let output11 = input11.toHtml + let output11 = input11.toHtml(preferRst) doAssert "<a href=\"#citation-note\">[note]</a>" in output11 # check that references to auto-numbered footnotes work @@ -1443,7 +1443,7 @@ Test1 Ref. target103_. """ - let output2 = input2.toHtml + let output2 = input2.toHtml(preferRst) # "target101" should be erased and changed to "section-xyz": doAssert "href=\"#target300\"" notin output2 doAssert "id=\"target300\"" notin output2 |