TEI writer: use rend, not rendition, on milestone (#11873)

`rendition` takes pointers to rendition descriptions, while `rend` is
the free-text attribute, which is what a plain "line" value needs.

Closes #11842.
This commit is contained in:
Yusuf Efe
2026-09-14 13:45:54 -07:00
committed by GitHub
parent 5ed3dbae57
commit 175eb1607b
2 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ blockToTEI _ b@(RawBlock f str)
blockToTEI _ HorizontalRule = return $
selfClosingTag "milestone" [("unit","undefined")
,("type","separator")
,("rendition","line")]
,("rend","line")]
blockToTEI opts (Figure attr capt bs) =
blockToTEI opts (figureDiv attr capt bs)
+13 -13
View File
@@ -19,7 +19,7 @@
<body>
<p>This is a set of tests for pandoc. Most of them are adapted from John
Grubers markdown test suite.</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
<div type="level1" xml:id="headers">
<head>Headers</head>
<div type="level2" xml:id="level-2-with-an-embedded-link">
@@ -48,7 +48,7 @@ Grubers markdown test suite.</p>
<div type="level2" xml:id="level-2">
<head>Level 2</head>
<p>with no blank line</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
</div>
<div type="level1" xml:id="paragraphs">
@@ -59,7 +59,7 @@ Grubers markdown test suite.</p>
item.</p>
<p>Heres one with a bullet. * criminey.</p>
<p>There should be a hard line break<lb />here.</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="block-quotes">
<head>Block Quotes</head>
@@ -93,7 +93,7 @@ sub status {
</quote>
<p>This should not be a block quote: 2 &gt; 1.</p>
<p>And a following paragraph.</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="code-blocks">
<head>Code Blocks</head>
@@ -113,7 +113,7 @@ this code block is indented by one tab
These should not be escaped: \$ \\ \&gt; \[ \{
</ab>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="lists">
<head>Lists</head>
@@ -405,7 +405,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<p>Should not be a list item:</p>
<p>M.A. 2007</p>
<p>B. Williams</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
</div>
<div type="level1" xml:id="definition-lists">
@@ -590,7 +590,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
&lt;hr /&gt;
</ab>
<p>Hrs:</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="inline-markup">
<head>Inline Markup</head>
@@ -623,7 +623,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
H<hi rendition="simple:subscript">many of them</hi>O.</p>
<p>These should not be superscripts or subscripts, because of the unescaped
spaces: a^b c^d, a~b c~d.</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="smart-quotes-ellipses-dashes">
<head>Smart quotes, ellipses, dashes</head>
@@ -640,7 +640,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<p>Some dashes: one—two — three—four — five.</p>
<p>Dashes between numbers: 57, 25566, 19871999.</p>
<p>Ellipses…and…and….</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="latex">
<head>LaTeX</head>
@@ -692,7 +692,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
</item>
</list>
<p>Heres a LaTeX table:</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="special-characters">
<head>Special Characters</head>
@@ -735,7 +735,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<p>Bang: !</p>
<p>Plus: +</p>
<p>Minus: -</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="links">
<head>Links</head>
@@ -801,7 +801,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<ab type='codeblock '>
or here: &lt;http://example.com/&gt;
</ab>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
</div>
<div type="level1" xml:id="images">
@@ -817,7 +817,7 @@ or here: &lt;http://example.com/&gt;
<head>movie</head>
<graphic url="movie.jpg" />
</figure> icon.</p>
<milestone unit="undefined" type="separator" rendition="line" />
<milestone unit="undefined" type="separator" rend="line" />
</div>
<div type="level1" xml:id="footnotes">
<head>Footnotes</head>