aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-04-10 10:47:10 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2021-04-10 10:57:06 +0200
commit051b7ffeaffdaf34ed1384a239cf0179aa59b932 (patch)
tree311dc9c0e0d5d9554037b170726d8d41d43cef2b /src/Text
parent20cd33e5a44810b68fed74da00f4f51eb2282147 (diff)
downloadpandoc-051b7ffeaffdaf34ed1384a239cf0179aa59b932.tar.gz
JATS writer: add footnote number as label in backmatter
Footnotes in the backmatter are given the footnote's number as a label. The articleauthoring output is unaffected from this change, as footnotes are placed inline there. Closes: #7210
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/JATS.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/JATS.hs b/src/Text/Pandoc/Writers/JATS.hs
index 26f94cb03..e78c6dc8f 100644
--- a/src/Text/Pandoc/Writers/JATS.hs
+++ b/src/Text/Pandoc/Writers/JATS.hs
@@ -436,6 +436,7 @@ inlineToJATS opts (Note contents) = do
(n, _):_ -> n + 1
[] -> 1
thenote <- inTags True "fn" [("id", "fn" <> tshow notenum)]
+ . (inTagsSimple "label" (literal $ tshow notenum) <>)
<$> wrappedBlocksToJATS (not . isPara) opts
(walk demoteHeaderAndRefs contents)
modify $ \st -> st{ jatsNotes = (notenum, thenote) : notes }