aboutsummaryrefslogtreecommitdiff
path: root/test/writer.jats_publishing
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-01-19 20:39:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-01-19 20:39:58 -0800
commit5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9 (patch)
tree9ed2e37a60225fd656b10b76c1db5deab0b12798 /test/writer.jats_publishing
parent1c4d14cdcc60c1bfcc579a5b5ab154e8e62e54c7 (diff)
downloadpandoc-5f98ac62e3f91a3301c13f17d9081b6ecb39e5a9.tar.gz
JATS writer: Ensure that disp-quote is always wrapped in p.
Closes #7041.
Diffstat (limited to 'test/writer.jats_publishing')
-rw-r--r--test/writer.jats_publishing68
1 files changed, 40 insertions, 28 deletions
diff --git a/test/writer.jats_publishing b/test/writer.jats_publishing
index 6d5a04057..915471576 100644
--- a/test/writer.jats_publishing
+++ b/test/writer.jats_publishing
@@ -78,31 +78,39 @@ Gruber’s markdown test suite.</p>
<sec id="block-quotes">
<title>Block Quotes</title>
<p>E-mail style:</p>
- <disp-quote>
- <p>This is a block quote. It is pretty short.</p>
- </disp-quote>
- <disp-quote>
- <p>Code in a block quote:</p>
- <preformat>sub status {
- print &quot;working&quot;;
-}</preformat>
- <p>A list:</p>
- <list list-type="order">
- <list-item>
- <p>item one</p>
- </list-item>
- <list-item>
- <p>item two</p>
- </list-item>
- </list>
- <p>Nested block quotes:</p>
+ <p specific-use="wrapper">
<disp-quote>
- <p>nested</p>
+ <p>This is a block quote. It is pretty short.</p>
</disp-quote>
+ </p>
+ <p specific-use="wrapper">
<disp-quote>
- <p>nested</p>
+ <p>Code in a block quote:</p>
+ <preformat>sub status {
+ print &quot;working&quot;;
+}</preformat>
+ <p>A list:</p>
+ <list list-type="order">
+ <list-item>
+ <p>item one</p>
+ </list-item>
+ <list-item>
+ <p>item two</p>
+ </list-item>
+ </list>
+ <p>Nested block quotes:</p>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>nested</p>
+ </disp-quote>
+ </p>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>nested</p>
+ </disp-quote>
+ </p>
</disp-quote>
- </disp-quote>
+ </p>
<p>This should not be a block quote: 2 &gt; 1.</p>
<p>And a following paragraph.</p>
</sec>
@@ -829,10 +837,12 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
</list-item>
</list>
<p>An e-mail address: <email>nobody@nowhere.net</email></p>
- <disp-quote>
- <p>Blockquoted:
- <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
- </disp-quote>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>Blockquoted:
+ <ext-link ext-link-type="uri" xlink:href="http://example.com/">http://example.com/</ext-link></p>
+ </disp-quote>
+ </p>
<p>Auto-links should not occur here:
<monospace>&lt;http://example.com/&gt;</monospace></p>
<preformat>or here: &lt;http://example.com/&gt;</preformat>
@@ -856,9 +866,11 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
<italic>not</italic> be a footnote reference, because it contains a
space.[^my note] Here is an inline
note.<xref ref-type="fn" rid="fn3">3</xref></p>
- <disp-quote>
- <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
- </disp-quote>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>Notes can go in quotes.<xref ref-type="fn" rid="fn4">4</xref></p>
+ </disp-quote>
+ </p>
<list list-type="order">
<list-item>
<p>And in list items.<xref ref-type="fn" rid="fn5">5</xref></p>