summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-02-28 11:27:34 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-02-28 11:31:05 -0800
commitcd460ec9c75f6f971125b75f9c3214a693ba651b (patch)
treeb4978912e48319e538d048f9279f750a1182ddf4 /test
parent87b07c699a5f4be6a14d45984db4898405157a65 (diff)
Fix regression in section numbering.
Starting with pandoc 3.1.12, unnumbered sections incremented the section number. Closes #9516.
Diffstat (limited to 'test')
-rw-r--r--test/command/9516.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/9516.md b/test/command/9516.md
new file mode 100644
index 000000000..a719e6078
--- /dev/null
+++ b/test/command/9516.md
@@ -0,0 +1,17 @@
+```
+% pandoc --number-sections
+# One {-}
+
+# Two
+
+# Three {-}
+
+# Four
+^D
+<h1 class="unnumbered" id="one">One</h1>
+<h1 data-number="1" id="two"><span
+class="header-section-number">1</span> Two</h1>
+<h1 class="unnumbered" id="three">Three</h1>
+<h1 data-number="2" id="four"><span
+class="header-section-number">2</span> Four</h1>
+```