diff options
author | Francesco Mazzoli <f@mazzo.li> | 2021-09-10 18:30:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 09:30:05 -0700 |
commit | 99a4d1d0b06bb68e4d7a10acd642d439842004d1 (patch) | |
tree | f25abce6d8620d00fc43b9ee9db7b4b20432c7fb /test/command | |
parent | 1481dae629b97c5b7ad28cd162e22a52c7647784 (diff) | |
download | pandoc-99a4d1d0b06bb68e4d7a10acd642d439842004d1.tar.gz |
Support `--reference-location` for HTML output (#7461)
The HTML writer now supports `EndOfBlock`, `EndOfSection`, and
`EndOfDocument` for reference locations. EPUB and HTML slide
show formats are also affected by this change.
This works similarly to the markdown writer, but with special care
taken to skipping section divs with what regards to the block level.
The change also takes care to not modify the output if `EndOfDocument`
is used.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/4235.md | 2 | ||||
-rw-r--r-- | test/command/7006.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/command/4235.md b/test/command/4235.md index 8bbf43ff9..4f2644dd6 100644 --- a/test/command/4235.md +++ b/test/command/4235.md @@ -3,7 +3,7 @@ This.^[Has a footnote.] ^D <p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1" role="doc-noteref"><sup>1</sup></a></p> -<section class="footnotes" role="doc-endnotes"> +<section class="footnotes footnotes-end-of-document" role="doc-endnotes"> <hr /> <ol> <li id="foofn1" role="doc-endnote"><p>Has a footnote.<a href="#foofnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li> diff --git a/test/command/7006.md b/test/command/7006.md index e7951fb1a..7e2215cdf 100644 --- a/test/command/7006.md +++ b/test/command/7006.md @@ -7,7 +7,7 @@ Test.[^fn]  ^D <p>Test.<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p> -<section class="footnotes" role="doc-endnotes"> +<section class="footnotes footnotes-end-of-document" role="doc-endnotes"> <hr /> <ol> <li id="fn1" role="doc-endnote"><p>Foo:</p> |