aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/extra/footnote.txt
diff options
context:
space:
mode:
authorIsaac Muse <faceless.shop@gmail.com>2017-01-23 12:31:41 -0700
committerWaylan Limberg <waylan.limberg@icloud.com>2017-01-23 14:31:41 -0500
commit8afeaafcb06c07058e1f296e3d3867048c01d18c (patch)
treef503585751230e4332c2c237162876947d393dce /tests/extensions/extra/footnote.txt
parent594b25d53798c30735da5a9be19c06cc94052a16 (diff)
downloadmarkdown-8afeaafcb06c07058e1f296e3d3867048c01d18c.tar.gz
markdown-8afeaafcb06c07058e1f296e3d3867048c01d18c.tar.bz2
markdown-8afeaafcb06c07058e1f296e3d3867048c01d18c.zip
Create additional references for duplicate footnotes (#534)
Track when we find duplicate footnote references and create unique ids for them. Then add an additional tree-processor after inline to go back and update the footnotes with additional back references that link to the duplicate footnote references. Fixes #468.
Diffstat (limited to 'tests/extensions/extra/footnote.txt')
-rw-r--r--tests/extensions/extra/footnote.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/extensions/extra/footnote.txt b/tests/extensions/extra/footnote.txt
index c5c1c92..f95ff2c 100644
--- a/tests/extensions/extra/footnote.txt
+++ b/tests/extensions/extra/footnote.txt
@@ -2,6 +2,12 @@ This is the body with a footnote[^1] or two[^2] or more[^3] [^4] [^5].
Also a reference that does not exist[^6].
+Duplicate[^a] footnotes[^a] test[^a].
+
+Duplicate[^b] footnotes[^b] test[^b].
+
+Single after duplicates[^c].
+
[^1]: Footnote that ends with a list:
* item 1
@@ -18,3 +24,7 @@ Also a reference that does not exist[^6].
[^5]: First line of first paragraph.
Second line of first paragraph is not intended.
Nor is third...
+
+[^a]: 1
+[^b]: 2
+[^c]: 3