mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
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:
@@ -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).
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user