aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-07-22 18:42:31 +0200
committerAlbert Krewinkel <[email protected]>2025-07-22 19:07:08 +0200
commita45878ff1ecb1af4a508833c05f0922f6ef28498 (patch)
tree620fbebac53b3fccefe6bd2e797ea25ffcc335f8 /test
parentf596612abd69c4aa517cc59df69ef6c4707f14bc (diff)
Markdown writer: match indents in definition items
Previously, the first line of a definition details item always used a colon and three spaces instead of respecting the tab-stop setting, which could lead to round-tripping issues. Likewise, the indentation of continuation paragraphs in definition lists now matches the two-characters leader of the first line for Markua output. Fixes: #10890
Diffstat (limited to 'test')
-rw-r--r--test/command/10890.md15
-rw-r--r--test/writer.markua14
2 files changed, 22 insertions, 7 deletions
diff --git a/test/command/10890.md b/test/command/10890.md
new file mode 100644
index 000000000..508a9a3d2
--- /dev/null
+++ b/test/command/10890.md
@@ -0,0 +1,15 @@
+```
+% pandoc --tab-stop=2 --from=native --to=markdown
+[ DefinitionList
+ [ ( [ Str "apple" ]
+ , [ [ Para [ Str "pomaceous" ] , Para [ Str "fruit" ] ] ]
+ )
+ ]
+]
+^D
+apple
+
+: pomaceous
+
+ fruit
+```
diff --git a/test/writer.markua b/test/writer.markua
index a7032dc27..c1ca713d9 100644
--- a/test/writer.markua
+++ b/test/writer.markua
@@ -317,17 +317,17 @@ Multiple blocks with italics:
: red fruit
- contains seeds, crisp, pleasant to taste
+ contains seeds, crisp, pleasant to taste
*orange*
: orange fruit
- ```
- { orange code block }
- ```
+ ```
+ { orange code block }
+ ```
- > orange block quote
+ > orange block quote
Multiple definitions, tight:
@@ -365,8 +365,8 @@ orange
: orange fruit
- 1. sublist
- 2. sublist
+ 1. sublist
+ 2. sublist
{id: html-blocks}
# HTML Blocks