aboutsummaryrefslogtreecommitdiff
path: root/test/writer.jats_articleauthoring
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_articleauthoring
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_articleauthoring')
-rw-r--r--test/writer.jats_articleauthoring88
1 files changed, 48 insertions, 40 deletions
diff --git a/test/writer.jats_articleauthoring b/test/writer.jats_articleauthoring
index 90437992e..65ad5e37c 100644
--- a/test/writer.jats_articleauthoring
+++ b/test/writer.jats_articleauthoring
@@ -67,39 +67,43 @@ 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>
- <p specific-use="wrapper">
- <preformat>sub status {
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>This is a block quote. It is pretty short.</p>
+ </disp-quote>
+ </p>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>Code in a block quote:</p>
+ <p specific-use="wrapper">
+ <preformat>sub status {
print &quot;working&quot;;
}</preformat>
- </p>
- <p>A list:</p>
- <p specific-use="wrapper">
- <list list-type="order">
- <list-item>
- <p>item one</p>
- </list-item>
- <list-item>
- <p>item two</p>
- </list-item>
- </list>
- </p>
- <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>
+ </p>
+ <p>A list:</p>
+ <p specific-use="wrapper">
+ <list list-type="order">
+ <list-item>
+ <p>item one</p>
+ </list-item>
+ <list-item>
+ <p>item two</p>
+ </list-item>
+ </list>
+ </p>
+ <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>
+ </p>
<p>This should not be a block quote: 2 &gt; 1.</p>
<p>And a following paragraph.</p>
</sec>
@@ -813,10 +817,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>
@@ -854,11 +860,13 @@ These should not be escaped: \$ \\ \&gt; \[ \{</preformat>
and <monospace>]</monospace> verbatim characters, as well as [bracketed
text].</p>
</fn></p>
- <disp-quote>
- <p>Notes can go in quotes.<fn>
- <p>In quote.</p>
- </fn></p>
- </disp-quote>
+ <p specific-use="wrapper">
+ <disp-quote>
+ <p>Notes can go in quotes.<fn>
+ <p>In quote.</p>
+ </fn></p>
+ </disp-quote>
+ </p>
<list list-type="order">
<list-item>
<p>And in list items.<fn>