aboutsummaryrefslogtreecommitdiff
path: root/test/command/5071.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-09-07 17:39:34 -0700
committerJohn MacFarlane <[email protected]>2024-09-08 08:29:23 -0700
commit3e6eb1cde217fe2b7715c46a367fed6b91c9fc96 (patch)
tree50f31967b18a197f137b4be7af0496638f51d581 /test/command/5071.md
parenta27dad6f688e4b30615f9619c81b276057078717 (diff)
Text.Pandoc.Shared: add `makeSectionsWithOffsets` [API change].
This is like `makeSections` but has an additional parameter specifying number offsets, for use with the `--number-offset` option. Use `makeSectionsWithOffsets` in HTML writer instead of ad hoc and inefficient number-adjusting code. Clarify MANUAL.txt: the `--number-offset` option should only directly affect numbering of the first section heading in a document; subsequent headings will increment normally. Fix test output for #5071 to reflect this.
Diffstat (limited to 'test/command/5071.md')
-rw-r--r--test/command/5071.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/command/5071.md b/test/command/5071.md
index 6bbeb85fc..0347d3c46 100644
--- a/test/command/5071.md
+++ b/test/command/5071.md
@@ -49,8 +49,8 @@ giving numbers like 0.1, when `--number-offset` is used:
^D
<h2 data-number="2.3" id="first-section"><span
class="header-section-number">2.3</span> First section</h2>
-<h3 data-number="2.3.3" id="subhead"><span
-class="header-section-number">2.3.3</span> Subhead</h3>
+<h3 data-number="2.3.1" id="subhead"><span
+class="header-section-number">2.3.1</span> Subhead</h3>
```
@@ -62,7 +62,7 @@ class="header-section-number">2.3.3</span> Subhead</h3>
^D
<h2 data-number="0.3" id="first-section"><span
class="header-section-number">0.3</span> First section</h2>
-<h3 data-number="0.3.3" id="subhead"><span
-class="header-section-number">0.3.3</span> Subhead</h3>
+<h3 data-number="0.3.1" id="subhead"><span
+class="header-section-number">0.3.1</span> Subhead</h3>
```