summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2022-02-13 02:39:02 +0100
committerGitHub <noreply@github.com>2022-02-12 17:39:02 -0800
commite1b7f3a63d521433d8a83e4e1f4f7aa1935d0bdd (patch)
treea9f6932ba79035d9daf57073e5f24ed2165b7611 /test/command
parent4b1cddd292a1d0f9f8b69392488fd5f79c8d46ad (diff)
JATS reader: improve handling of fn-group elements (#7914)
Footnotes in `<fn-group>` elements are collected and re-inserted into the document as proper footnotes in the place where they are referenced. Fixes: #6348
Diffstat (limited to 'test/command')
-rw-r--r--test/command/6348.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/command/6348.md b/test/command/6348.md
new file mode 100644
index 000000000..7f599e52e
--- /dev/null
+++ b/test/command/6348.md
@@ -0,0 +1,42 @@
+```
+% pandoc -f jats -t native
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN" "http://jats.nlm.nih.gov/publishing/1.0/JATS-journalpublishing1.dtd">
+<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" dtd-version="1.0" article-type="research-article">
+ <front>
+ <journal-meta>
+ <journal-title-group>
+ <journal-title>Opinion Research</journal-title>
+ </journal-title-group>
+ </journal-meta>
+ <article-meta>
+ <title-group>
+ <article-title>Example article</article-title>
+ </title-group>
+ </article-meta>
+ </front>
+ <body>
+ <sec sec-type="results">
+ <title>Results</title>
+ <p>A University <xref ref-type="fn" rid="N0001">1</xref></p>
+ </sec>
+ </body>
+ <back>
+ <fn-group>
+ <fn id="N0001">
+ <p>footnote</p>
+ </fn>
+ </fn-group>
+ </back>
+</article>
+^D
+[ Header 1 ( "" , [] , [] ) [ Str "Results" ]
+, Para
+ [ Str "A"
+ , Space
+ , Str "University"
+ , Space
+ , Note [ Para [ Str "footnote" ] ]
+ ]
+]
+```