From 8afeaafcb06c07058e1f296e3d3867048c01d18c Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Mon, 23 Jan 2017 12:31:41 -0700 Subject: 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. --- tests/extensions/extra/footnote.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/extensions/extra/footnote.html') diff --git a/tests/extensions/extra/footnote.html b/tests/extensions/extra/footnote.html index e5b41a7..9cf42ed 100644 --- a/tests/extensions/extra/footnote.html +++ b/tests/extensions/extra/footnote.html @@ -1,5 +1,8 @@

This is the body with a footnote1 or two2 or more3 4 5.

Also a reference that does not exist[^6].

+

Duplicate6 footnotes6 test6.

+

Duplicate7 footnotes7 test7.

+

Single after duplicates8.


    @@ -29,5 +32,14 @@ Second line of first paragraph is not intended. Nor is third... 

    +
  1. +

    +
  2. +
  3. +

    +
  4. +
  5. +

    +
\ No newline at end of file -- cgit v1.2.3