From 175eb1607b5a16670a5593d82d5a99289857cc3d Mon Sep 17 00:00:00 2001 From: Yusuf Efe <120668197+yuefdev@users.noreply.github.com> Date: Mon, 14 Sep 2026 23:45:54 +0300 Subject: [PATCH] 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. --- src/Text/Pandoc/Writers/TEI.hs | 2 +- test/writer.tei | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Text/Pandoc/Writers/TEI.hs b/src/Text/Pandoc/Writers/TEI.hs index aff9268c2..391bd22c5 100644 --- a/src/Text/Pandoc/Writers/TEI.hs +++ b/src/Text/Pandoc/Writers/TEI.hs @@ -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) diff --git a/test/writer.tei b/test/writer.tei index 9aeac71fc..45e14a245 100644 --- a/test/writer.tei +++ b/test/writer.tei @@ -19,7 +19,7 @@
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
-with no blank line
-Here’s one with a bullet. * criminey.
There should be a hard line break
here.
This should not be a block quote: 2 > 1.
And a following paragraph.
-Should not be a list item:
M.A. 2007
B. Williams
-Hr’s:
-These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
-Some dashes: one—two — three—four — five.
Dashes between numbers: 5–7, 255–66, 1987–1999.
Ellipses…and…and….
-Here’s a LaTeX table:
-Bang: !
Plus: +
Minus: -
-