diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-05-16 21:39:03 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-05-16 21:39:03 -0700 |
commit | e87b54dcad5e37133bc0f4cfc8039e9fd0dd1b4e (patch) | |
tree | b9fe5cbdac943d42b13309ecbb99983c2c9c2fb9 /test/Tests/Writers | |
parent | 2e13c0a451fe87ebd1ef2c314f7f98c40f3ec422 (diff) | |
download | pandoc-e87b54dcad5e37133bc0f4cfc8039e9fd0dd1b4e.tar.gz |
JATS writer: properly handle footnotes.
"Best Practice: When footnotes are grouped at the end of an article,
wrap them in a `<fn-group>` and use an `<xref>` element in the text, as
usual, to tie each footnote in the list to a particular location in the
text."
Closes #5511.
Diffstat (limited to 'test/Tests/Writers')
-rw-r--r-- | test/Tests/Writers/JATS.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Tests/Writers/JATS.hs b/test/Tests/Writers/JATS.hs index 669220eea..6de058701 100644 --- a/test/Tests/Writers/JATS.hs +++ b/test/Tests/Writers/JATS.hs @@ -86,9 +86,7 @@ tests = [ testGroup "inline code" headerWith ("foo",["unnumbered"],[]) 1 (text "Header 1" <> note (plain $ text "note")) =?> "<sec id=\"foo\">\n\ - \ <title>Header 1<fn>\n\ - \ <p>note</p>\n\ - \ </fn></title>\n\ + \ <title>Header 1<xref ref-type=\"fn\" rid=\"fn1\">1</xref></title>\n\ \</sec>" , "unnumbered sub header" =: headerWith ("foo",["unnumbered"],[]) 1 |