Markdown reader: Add a syntax for resetting example list counter.

This is needed often at the beginning of a chapter.

Closes #10940.
This commit is contained in:
John MacFarlane
2026-08-24 11:58:10 -07:00
parent 14b0ec95c8
commit 5727e10827
3 changed files with 42 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
```
% pandoc -t plain
# Chapter one
(@foo) an example list.
(@) second item.
# Chapter two
(1@bar) reset the counter to one.
(@) another.
Foo is (@foo) and bar is (@bar).
^D
Chapter one
(1) an example list.
(2) second item.
Chapter two
(1) reset the counter to one.
(2) another.
Foo is (1) and bar is (1).
```