aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-04-10 17:18:05 -0700
committerJohn MacFarlane <[email protected]>2024-04-10 17:18:05 -0700
commita0c1bdeb8b93e2661132a714668dff5f32ffb167 (patch)
tree3c61301197f62cded2dee313da2babf933e1b146 /test/command
parent820e371d94d9d2c9487f1e32ee6c006132f678d8 (diff)
Markdown reader: auto-close unclosed divs.
This applies to both fenced and HTML-ish varieties. Otherwise we face an exponential performance problem with backtracking. This also accords with the behavior of the `fenced_divs` extension in commonmark. A warning is issued when a div is implicitly closed. Closes #9635.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/9635.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command/9635.md b/test/command/9635.md
new file mode 100644
index 000000000..088a5b6d2
--- /dev/null
+++ b/test/command/9635.md
@@ -0,0 +1,16 @@
+```
+% pandoc
+> ::: {.fence}
+> that is
+> not closed
+
+okay
+^D
+2> [WARNING] Div at _chunk line 1 column 1 unclosed at _chunk line 5 column 1, closing implicitly.
+<blockquote>
+<div class="fence">
+<p>that is not closed</p>
+</div>
+</blockquote>
+<p>okay</p>
+```