aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-12-20 13:44:03 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-22 09:45:02 -0800
commit7a9832166e36f77402d5e0259647e9f5c7ba4e58 (patch)
tree38b417997812c3e04704be97c05368ea795b15fe /test/command
parent0bdf37315766eb4b785002ffaf38cdb724628e7a (diff)
downloadpandoc-7a9832166e36f77402d5e0259647e9f5c7ba4e58.tar.gz
Add text wrapping to HTML output.
Previously the HTML writer was exceptional in not being sensitive to the `--wrap` option. With this change `--wrap` now works for HTML. The default (as with other formats) is automatic wrapping to 72 columns. A new internal module, T.P.Writers.Blaze, exports `layoutMarkup`. This converts a blaze Html structure into a doclayout Doc Text. In addition, we now add a line break between an `img` tag and the associated `figcaption`. Note: Output is never wrapped in `writeHtmlStringForEPUB`. This accords with previous behavior since previously the HTML writer was insensitive to `--wrap` settings. There's no real need to wrap HTML inside a zipped container. Note that the contents of script, textarea, and pre tags are always laid out with the `flush` combinator, so that unwanted spaces won't be introduced if these occur in an indented context in a template. Closes #7764.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/262.md3
-rw-r--r--test/command/2649.md9
-rw-r--r--test/command/3523.md8
-rw-r--r--test/command/3534.md15
-rw-r--r--test/command/3577.md9
-rw-r--r--test/command/3701.md3
-rw-r--r--test/command/3752.md18
-rw-r--r--test/command/3840.md3
-rw-r--r--test/command/4012.md3
-rw-r--r--test/command/4186.md3
-rw-r--r--test/command/4235.md10
-rw-r--r--test/command/4639.md2
-rw-r--r--test/command/4677.md3
-rw-r--r--test/command/4743.md4
-rw-r--r--test/command/512.md3
-rw-r--r--test/command/5121.md3
-rw-r--r--test/command/5627.md12
-rw-r--r--test/command/5642.md3
-rw-r--r--test/command/5650.md6
-rw-r--r--test/command/5655.md10
-rw-r--r--test/command/5813.md3
-rw-r--r--test/command/5986.md3
-rw-r--r--test/command/6739.md3
-rw-r--r--test/command/7006.md9
-rw-r--r--test/command/7416.md6
-rw-r--r--test/command/7568.md7
-rw-r--r--test/command/7713.md3
-rw-r--r--test/command/853.md6
-rw-r--r--test/command/video-audio.md10
29 files changed, 125 insertions, 55 deletions
diff --git a/test/command/262.md b/test/command/262.md
index bda2acb35..61af20ede 100644
--- a/test/command/262.md
+++ b/test/command/262.md
@@ -5,7 +5,8 @@
.. _hello:
.. _goodbye: example.com
^D
-<p><a href="example.com">hello</a> and <a href="example.com">goodbye</a></p>
+<p><a href="example.com">hello</a> and <a
+href="example.com">goodbye</a></p>
```
```
diff --git a/test/command/2649.md b/test/command/2649.md
index 52ae16ce4..4ab059ea0 100644
--- a/test/command/2649.md
+++ b/test/command/2649.md
@@ -90,17 +90,20 @@
<tbody>
<tr class="odd">
<td><p>1</p></td>
-<td><p><a href="Sébastien_Loeb" title="wikilink">Sébastien Loeb</a></p></td>
+<td><p><a href="Sébastien_Loeb" title="wikilink">Sébastien
+Loeb</a></p></td>
<td><p>78</p></td>
</tr>
<tr class="even">
<td><p>2</p></td>
-<td><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien Ogier</a></strong></p></td>
+<td><p><strong><a href="Sébastien_Ogier" title="wikilink">Sébastien
+Ogier</a></strong></p></td>
<td><p>38</p></td>
</tr>
<tr class="odd">
<td><p>10</p></td>
-<td><p><a href="Hannu_Mikkola" title="wikilink">Hannu Mikkola</a></p></td>
+<td><p><a href="Hannu_Mikkola" title="wikilink">Hannu
+Mikkola</a></p></td>
<td><p>18</p></td>
</tr>
</tbody>
diff --git a/test/command/3523.md b/test/command/3523.md
index cb0089489..c3574943c 100644
--- a/test/command/3523.md
+++ b/test/command/3523.md
@@ -19,8 +19,12 @@
\end{document}
^D
<div class="epigraph">
-<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr ist das Leben des Menschen selbst, von einer besonderen Seite angesehen.</p>
-<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr ist das Leben des Menschen selbst, von einer besonderen Seite angesehen.</p>
+<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr
+ist das Leben des Menschen selbst, von einer besonderen Seite
+angesehen.</p>
+<p>Das Recht hat kein Dasein f<span>ü</span>r sich, sein Wesen vielmehr
+ist das Leben des Menschen selbst, von einer besonderen Seite
+angesehen.</p>
<ul>
<li><p>hey</p></li>
<li><p>hey</p></li>
diff --git a/test/command/3534.md b/test/command/3534.md
index 8692007d2..42dca9207 100644
--- a/test/command/3534.md
+++ b/test/command/3534.md
@@ -2,7 +2,9 @@
% pandoc -f latex -t html
I want to explain the interface of \lstinline[language=Java]{public class MyClass}.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
@@ -10,7 +12,8 @@ I want to explain the interface of \lstinline[language=Java]{public class MyClas
% pandoc -f latex -t html
I want to explain the interface of \lstinline{public class MyClass}.
^D
-<p>I want to explain the interface of <code>public class MyClass</code>.</p>
+<p>I want to explain the interface of <code>public class
+MyClass</code>.</p>
```
@@ -43,7 +46,9 @@ I want to explain the interface of \lstinline[language=Java]{public class MyClas
% pandoc -f latex -t html
I want to explain the interface of \mintinline{java}{public class MyClass}.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
@@ -51,7 +56,9 @@ I want to explain the interface of \mintinline{java}{public class MyClass}.
% pandoc -f latex -t html
I want to explain the interface of \mintinline{java}|public class MyClass|.
^D
-<p>I want to explain the interface of <code class="sourceCode java"><span class="kw">public</span> <span class="kw">class</span> MyClass</code>.</p>
+<p>I want to explain the interface of <code class="sourceCode
+java"><span class="kw">public</span> <span class="kw">class</span>
+MyClass</code>.</p>
```
diff --git a/test/command/3577.md b/test/command/3577.md
index 2f415146d..2caeb7c11 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -16,10 +16,12 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 1" /><figcaption aria-hidden="true">Caption 1</figcaption>
+<img src="img1.jpg" alt="Caption 1" />
+<figcaption aria-hidden="true">Caption 1</figcaption>
</figure>
<figure>
-<img src="img2.jpg" alt="Caption 2" /><figcaption aria-hidden="true">Caption 2</figcaption>
+<img src="img2.jpg" alt="Caption 2" />
+<figcaption aria-hidden="true">Caption 2</figcaption>
</figure>
```
```
@@ -30,6 +32,7 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 3" /><figcaption aria-hidden="true">Caption 3</figcaption>
+<img src="img1.jpg" alt="Caption 3" />
+<figcaption aria-hidden="true">Caption 3</figcaption>
</figure>
```
diff --git a/test/command/3701.md b/test/command/3701.md
index 01e438639..bd70fae59 100644
--- a/test/command/3701.md
+++ b/test/command/3701.md
@@ -55,6 +55,7 @@
^D
<p><a href="u">a</a></p>
<p><a href="u">a</a></p>
-<p><a href="u2">a</a> <a href="u">A</a> <a href="u" class="foo">a</a></p>
+<p><a href="u2">a</a> <a href="u">A</a> <a href="u"
+class="foo">a</a></p>
<p><a href="u3">a</a></p>
```
diff --git a/test/command/3752.md b/test/command/3752.md
index 863e3f2d4..7db581cfe 100644
--- a/test/command/3752.md
+++ b/test/command/3752.md
@@ -32,11 +32,14 @@ A spider: [spider]
^D
<h1 id="chapter-one">Chapter one</h1>
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
-<p>Another spider: <img src="command/chap2/spider.png" alt="another spider" /></p>
+<p>Another spider: <img src="command/chap2/spider.png" alt="another
+spider" /></p>
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
-<p>URL left alone: <a href="https://pandoc.org/MANUAL.html">manual</a>.</p>
-<p>Absolute path left alone: <a href="/foo/bar/baz.png">absolute</a>.</p>
+<p>URL left alone: <a
+href="https://pandoc.org/MANUAL.html">manual</a>.</p>
+<p>Absolute path left alone: <a
+href="/foo/bar/baz.png">absolute</a>.</p>
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
<p>Empty path: <a href="">empty</a>.</p>
<h1 id="chapter-two">Chapter two</h1>
@@ -48,11 +51,14 @@ A spider: [spider]
^D
<h1>Chapter one</h1>
<p>A spider: <img src="command/chap1/spider.png" alt="spider" /></p>
-<p>Another spider: <img src="command/chap2/spider.png" alt="another spider" /></p>
+<p>Another spider: <img src="command/chap2/spider.png" alt="another
+spider" /></p>
<p>The moon: <img src="command/chap1/../../lalune.jpg" alt="moon" /></p>
<p>Link to <a href="command/chap1/spider.png">spider picture</a>.</p>
-<p>URL left alone: <a href="https://pandoc.org/MANUAL.html">manual</a>.</p>
-<p>Absolute path left alone: <a href="/foo/bar/baz.png">absolute</a>.</p>
+<p>URL left alone: <a
+href="https://pandoc.org/MANUAL.html">manual</a>.</p>
+<p>Absolute path left alone: <a
+href="/foo/bar/baz.png">absolute</a>.</p>
<p>Link to fragment: <a href="#chapter-two">chapter two</a>.</p>
<p>Empty path: <a href="">empty</a>.</p>
<h1>Chapter two</h1>
diff --git a/test/command/3840.md b/test/command/3840.md
index ceb1d1e51..a0dd314d3 100644
--- a/test/command/3840.md
+++ b/test/command/3840.md
@@ -2,7 +2,8 @@
% pandoc
[@Alhazen1572-qk, V.9]: "competentius est"
^D
-<p><span class="citation" data-cites="Alhazen1572-qk">[@Alhazen1572-qk, V.9]</span>: “competentius est”</p>
+<p><span class="citation" data-cites="Alhazen1572-qk">[@Alhazen1572-qk,
+V.9]</span>: “competentius est”</p>
```
```
diff --git a/test/command/4012.md b/test/command/4012.md
index 9e32692d6..26e971d4e 100644
--- a/test/command/4012.md
+++ b/test/command/4012.md
@@ -4,5 +4,6 @@
[image]: http://example.com/image.jpg {height=35mm}
^D
-<p><img src="http://example.com/image.jpg" style="height:35mm" alt="image" /></p>
+<p><img src="http://example.com/image.jpg" style="height:35mm"
+alt="image" /></p>
```
diff --git a/test/command/4186.md b/test/command/4186.md
index 90ac1271b..b2a2bd6e9 100644
--- a/test/command/4186.md
+++ b/test/command/4186.md
@@ -57,7 +57,8 @@ Outside all lists.
</ul>
<pre id="carrie" class="example"><code>This belongs to the outer list element, and is aligned accordingly, since the NAME attribute is not indented deeply enough. It is not enough for the BEGIN alone to be aligned deeply if the block is meant to have a NAME.
</code></pre>
-<p>Still in the shallower list element since the preceding example block forced the deeper list element to terminate.</p></li>
+<p>Still in the shallower list element since the preceding example block
+forced the deeper list element to terminate.</p></li>
</ul>
<p>Outside all lists.</p>
```
diff --git a/test/command/4235.md b/test/command/4235.md
index 4f2644dd6..5b534b6d7 100644
--- a/test/command/4235.md
+++ b/test/command/4235.md
@@ -2,11 +2,15 @@
% pandoc --id-prefix=foo
This.^[Has a footnote.]
^D
-<p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1" role="doc-noteref"><sup>1</sup></a></p>
-<section class="footnotes footnotes-end-of-document" role="doc-endnotes">
+<p>This.<a href="#foofn1" class="footnote-ref" id="foofnref1"
+role="doc-noteref"><sup>1</sup></a></p>
+<section class="footnotes footnotes-end-of-document"
+role="doc-endnotes">
<hr />
<ol>
-<li id="foofn1" role="doc-endnote"><p>Has a footnote.<a href="#foofnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
+<li id="foofn1" role="doc-endnote"><p>Has a footnote.<a
+href="#foofnref1" class="footnote-back"
+role="doc-backlink">↩︎</a></p></li>
</ol>
</section>
```
diff --git a/test/command/4639.md b/test/command/4639.md
index c35df1749..31ac3a5d9 100644
--- a/test/command/4639.md
+++ b/test/command/4639.md
@@ -5,6 +5,6 @@
\end{equation}
^D
<p><span class="math display">\[\begin{equation}
- E=mc^2
+E=mc^2
\end{equation}\]</span></p>
```
diff --git a/test/command/4677.md b/test/command/4677.md
index 2694624b9..64c436005 100644
--- a/test/command/4677.md
+++ b/test/command/4677.md
@@ -3,6 +3,7 @@
![Caption](img.png){#img:1}
^D
<figure>
-<img src="img.png" id="img:1" alt="Caption" /><figcaption aria-hidden="true">Caption</figcaption>
+<img src="img.png" id="img:1" alt="Caption" />
+<figcaption aria-hidden="true">Caption</figcaption>
</figure>
```
diff --git a/test/command/4743.md b/test/command/4743.md
index 582540736..a75ec1078 100644
--- a/test/command/4743.md
+++ b/test/command/4743.md
@@ -41,5 +41,7 @@ My:thumbsup:emoji:heart:
My:thumbsup:emoji:heart:x :hearts: xyz
^D
<h1><span class="emoji" data-emoji="zero">0️⃣</span> header</h1>
-<p>My<span class="emoji" data-emoji="thumbsup">👍</span>emoji<span class="emoji" data-emoji="heart">❤️</span>x <span class="emoji" data-emoji="hearts">♥️</span> xyz</p>
+<p>My<span class="emoji" data-emoji="thumbsup">👍</span>emoji<span
+class="emoji" data-emoji="heart">❤️</span>x <span class="emoji"
+data-emoji="hearts">♥️</span> xyz</p>
```
diff --git a/test/command/512.md b/test/command/512.md
index b95921309..21b3ea9a7 100644
--- a/test/command/512.md
+++ b/test/command/512.md
@@ -8,7 +8,8 @@
__ link1_
__ link2_
^D
-<p><a href="http://www.example.com/">click here</a> or <a href="http://johnmacfarlane.net/pandoc/">click here</a></p>
+<p><a href="http://www.example.com/">click here</a> or <a
+href="http://johnmacfarlane.net/pandoc/">click here</a></p>
```
Multiple indirection:
diff --git a/test/command/5121.md b/test/command/5121.md
index 1ee6bda77..f1b972fb4 100644
--- a/test/command/5121.md
+++ b/test/command/5121.md
@@ -5,7 +5,8 @@
## Header 2
^D
<figure>
-<img src="./my-figure.jpg" width="500" alt="My caption" /><figcaption aria-hidden="true">My caption</figcaption>
+<img src="./my-figure.jpg" width="500" alt="My caption" />
+<figcaption aria-hidden="true">My caption</figcaption>
</figure>
## Header 2
diff --git a/test/command/5627.md b/test/command/5627.md
index 9910e76c5..dde4c99d6 100644
--- a/test/command/5627.md
+++ b/test/command/5627.md
@@ -20,8 +20,10 @@ Something
<li>Two <code>--&gt;something&lt;!--</code></li>
<li>Three</li>
</ol>
-<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
-<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
+<div class="sourceCode" id="cb1"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
+<div class="sourceCode" id="cb2"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
```
```
@@ -46,8 +48,10 @@ Something
<li><code>--&gt;something&lt;!--</code></li>
<li>bye <code>--&gt;something else&lt;!--</code></li>
</ul>
-<div class="sourceCode" id="cb1"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
-<div class="sourceCode" id="cb2"><pre class="sourceCode html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
+<div class="sourceCode" id="cb1"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>--&gt;<span class="co">&lt;!--&lt;script&gt;alert(&#39;Escaped!&#39;)&lt;/script&gt;</span></span></code></pre></div>
+<div class="sourceCode" id="cb2"><pre class="sourceCode
+html"><code class="sourceCode html"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Something</span></code></pre></div>
```
```
diff --git a/test/command/5642.md b/test/command/5642.md
index cd60df812..120a88ada 100644
--- a/test/command/5642.md
+++ b/test/command/5642.md
@@ -3,6 +3,7 @@
![test](foo){aria-describedby="barbaz"}
^D
<figure>
-<img src="foo" aria-describedby="barbaz" alt="test" /><figcaption aria-hidden="true">test</figcaption>
+<img src="foo" aria-describedby="barbaz" alt="test" />
+<figcaption aria-hidden="true">test</figcaption>
</figure>
```
diff --git a/test/command/5650.md b/test/command/5650.md
index a2dd215bc..1e96aeaa4 100644
--- a/test/command/5650.md
+++ b/test/command/5650.md
@@ -5,7 +5,8 @@ a
b
```
^D
-<div class="sourceCode" id="foocb1"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1" aria-hidden="true" tabindex="-1"></a>a</span>
+<div class="sourceCode" id="foocb1"><pre class="sourceCode
+haskell"><code class="sourceCode haskell"><span id="foocb1-1"><a href="#foocb1-1" aria-hidden="true" tabindex="-1"></a>a</span>
<span id="foocb1-2"><a href="#foocb1-2" aria-hidden="true" tabindex="-1"></a>b</span></code></pre></div>
````
@@ -16,7 +17,8 @@ a
b
```
^D
-<div class="sourceCode" id="foobar"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1" aria-hidden="true" tabindex="-1"></a>a</span>
+<div class="sourceCode" id="foobar"><pre class="sourceCode
+haskell"><code class="sourceCode haskell"><span id="foobar-1"><a href="#foobar-1" aria-hidden="true" tabindex="-1"></a>a</span>
<span id="foobar-2"><a href="#foobar-2" aria-hidden="true" tabindex="-1"></a>b</span></code></pre></div>
````
diff --git a/test/command/5655.md b/test/command/5655.md
index 692009562..72ad46e5e 100644
--- a/test/command/5655.md
+++ b/test/command/5655.md
@@ -2,13 +2,19 @@
% pandoc --webtex
$T_n={n+1 \choose 2}$
^D
-<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math inline" /></p>
+<p><img style="vertical-align:middle"
+src="https://latex.codecogs.com/png.latex?%5Ctextstyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
+alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math
+inline" /></p>
````
````
% pandoc --webtex
$$T_n={n+1 \choose 2}$$
^D
-<p><img style="vertical-align:middle" src="https://latex.codecogs.com/png.latex?%5Cdisplaystyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D" alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math display" /></p>
+<p><img style="vertical-align:middle"
+src="https://latex.codecogs.com/png.latex?%5Cdisplaystyle%20T_n%3D%7Bn%2B1%20%5Cchoose%202%7D"
+alt="T_n={n+1 \choose 2}" title="T_n={n+1 \choose 2}" class="math
+display" /></p>
````
diff --git a/test/command/5813.md b/test/command/5813.md
index 927a161ed..51f774524 100644
--- a/test/command/5813.md
+++ b/test/command/5813.md
@@ -2,5 +2,6 @@
% pandoc -f gfm
### Jekyll Plugins & Gems :gem:
^D
-<h3 id="jekyll-plugins--gems-gem">Jekyll Plugins &amp; Gems <span class="emoji" data-emoji="gem">💎</span></h3>
+<h3 id="jekyll-plugins--gems-gem">Jekyll Plugins &amp; Gems <span
+class="emoji" data-emoji="gem">💎</span></h3>
```
diff --git a/test/command/5986.md b/test/command/5986.md
index c181e33ad..aaa1e6568 100644
--- a/test/command/5986.md
+++ b/test/command/5986.md
@@ -6,7 +6,8 @@
<p><span id="nav.xhtml"></span></p>
<nav epub:type="landmarks" id="landmarks" hidden="hidden">
<ol>
-<li><a href="text/title_page.xhtml" class="titlepage">Title Page</a></li>
+<li><a href="text/title_page.xhtml" class="titlepage">Title
+Page</a></li>
<li><a href="#nav.xhtml#toc" class="toc">Table of Contents</a></li>
</ol>
</nav>
diff --git a/test/command/6739.md b/test/command/6739.md
index 7c9ed24a2..ff2d4bc75 100644
--- a/test/command/6739.md
+++ b/test/command/6739.md
@@ -4,7 +4,8 @@
* `--argA | --argB` This item has a pipe character
^D
<ul>
-<li><code>--argument</code> This item does not have a pipe character</li>
+<li><code>--argument</code> This item does not have a pipe
+character</li>
<li><code>--argA | --argB</code> This item has a pipe character</li>
</ul>
```
diff --git a/test/command/7006.md b/test/command/7006.md
index 7e2215cdf..22aaf84ad 100644
--- a/test/command/7006.md
+++ b/test/command/7006.md
@@ -6,13 +6,16 @@ Test.[^fn]
![Caption.](/image.jpg)
^D
-<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a></p>
-<section class="footnotes footnotes-end-of-document" role="doc-endnotes">
+<p>Test.<a href="#fn1" class="footnote-ref" id="fnref1"
+role="doc-noteref"><sup>1</sup></a></p>
+<section class="footnotes footnotes-end-of-document"
+role="doc-endnotes">
<hr />
<ol>
<li id="fn1" role="doc-endnote"><p>Foo:</p>
<figure>
-<img src="/image.jpg" alt="Caption." /><figcaption aria-hidden="true">Caption.</figcaption>
+<img src="/image.jpg" alt="Caption." />
+<figcaption aria-hidden="true">Caption.</figcaption>
</figure>
<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></li>
</ol>
diff --git a/test/command/7416.md b/test/command/7416.md
index 2f9577f10..d440725ab 100644
--- a/test/command/7416.md
+++ b/test/command/7416.md
@@ -4,7 +4,8 @@
^D
<figure>
-<img src="../media/rId25.jpg" title="title" alt="alt" /><figcaption>caption</figcaption>
+<img src="../media/rId25.jpg" title="title" alt="alt" />
+<figcaption>caption</figcaption>
</figure>
```
@@ -14,6 +15,7 @@
^D
<figure>
-<img src="../media/rId25.jpg" title="title" alt="caption" /><figcaption aria-hidden="true">caption</figcaption>
+<img src="../media/rId25.jpg" title="title" alt="caption" />
+<figcaption aria-hidden="true">caption</figcaption>
</figure>
```
diff --git a/test/command/7568.md b/test/command/7568.md
index 42f1e37b1..487da0861 100644
--- a/test/command/7568.md
+++ b/test/command/7568.md
@@ -7,5 +7,10 @@ holds a useful spot.
.. _Labyrinth Lord\: Revised Edition: https://www.drivethrurpg.com/product/64332/Labyrinth-Lord-Revised-Edition
^D
-<p>While <a href="https://www.drivethrurpg.com/product/64332/Labyrinth-Lord-Revised-Edition">Labyrinth Lord: Revised Edition</a> (LLRE; PDF and POD) has been criticized for not being a completely faithful retro-clone of the Moldvay/Cook/Marsh Basic/Expert D&amp;D rules (B/X), I think it still holds a useful spot.</p>
+<p>While <a
+href="https://www.drivethrurpg.com/product/64332/Labyrinth-Lord-Revised-Edition">Labyrinth
+Lord: Revised Edition</a> (LLRE; PDF and POD) has been criticized for
+not being a completely faithful retro-clone of the Moldvay/Cook/Marsh
+Basic/Expert D&amp;D rules (B/X), I think it still holds a useful
+spot.</p>
```
diff --git a/test/command/7713.md b/test/command/7713.md
index d42dcd9b8..851cb4729 100644
--- a/test/command/7713.md
+++ b/test/command/7713.md
@@ -21,7 +21,8 @@
<tr class="odd">
<td></td>
<td></td>
-<td>cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc</td>
+<td>cccccccccc cccccccccc cccccccccc cccccccccc cccccccccc
+cccccccccc</td>
</tr>
</tbody>
</table>
diff --git a/test/command/853.md b/test/command/853.md
index 54eb416a9..bcc3b4654 100644
--- a/test/command/853.md
+++ b/test/command/853.md
@@ -7,11 +7,13 @@ Here is a citation reference: [CIT2002]_.
.. [CIT2002] This is the citation. It's just like a footnote,
except the label is textual.
^D
-<p>Here is a citation reference: <a href="#CIT2002" class="citation">[CIT2002]</a>.</p>
+<p>Here is a citation reference: <a href="#CIT2002"
+class="citation">[CIT2002]</a>.</p>
<div id="citations">
<dl>
<dt><span id="CIT2002" class="citation-label">CIT2002</span></dt>
-<dd><p>This is the citation. It's just like a footnote, except the label is textual.</p>
+<dd><p>This is the citation. It's just like a footnote, except the label
+is textual.</p>
</dd>
</dl>
</div>
diff --git a/test/command/video-audio.md b/test/command/video-audio.md
index 451b614d8..4fbd58db3 100644
--- a/test/command/video-audio.md
+++ b/test/command/video-audio.md
@@ -10,9 +10,13 @@
![](./test.jpg)
^D
-<p><video src="./test.mp4" controls=""><a href="./test.mp4">Video</a></video></p>
-<p><video src="foo/test.webm" width="300" controls=""><a href="foo/test.webm">Your browser does not support video.</a></video></p>
-<p><audio src="test.mp3" controls=""><a href="test.mp3">Audio</a></audio></p>
+<p><video src="./test.mp4" controls=""><a
+href="./test.mp4">Video</a></video></p>
+<p><video src="foo/test.webm" width="300" controls=""><a
+href="foo/test.webm">Your browser does not support
+video.</a></video></p>
+<p><audio src="test.mp3" controls=""><a
+href="test.mp3">Audio</a></audio></p>
<p><embed src="./test.pdf" /></p>
<p><img src="./test.jpg" /></p>
```