How to reset a continuous list? #7496
DescriptionQuarto allows listings with interruptions (a continuous list). This can be achieved using (
My question is regarding having more than one continuous list in the same Quarto file For example: In my tests, the numbering just continues without resetting. |
Answered by
adamiturabi
Aug 24, 2026
Replies: 3 comments 2 replies
0 replies
|
According to the Pandoc Manual, a ## Ending a list
What if you want to put an indented code block after a list?
- item one
- item two
{ my code block }
Trouble! Here pandoc (like other Markdown implementations) will treat { my code block } as the second paragraph of item two, and not as a code block.
To “cut off” the list after item two, you can insert some non-indented content, like an HTML comment, which won’t produce visible output in any format:
- item one
- item two
<!-- end of list -->
{ my code block }
You can use the same trick if you want two consecutive lists instead of one big list:
1. one
2. two
3. three
<!-- -->
1. uno
2. dos
3. tresUnfortunately, it doesn't seems to work with Quarto. ### Figures
See [Code Cells](https://quarto.org/docs/reference/cells/).
(@) Create a new figure environment.
Name it ` abntfigure` and include an `\quartolegend` in the end.
Use `\notblank` from `etoolbox` package to add a conditional layer.
(@) Add the new environment to `fig-env` in `_extension.yml`.
<!-- -->
### Tables
(@) Add a hook at the end of the `longtable` environment.
Include the `\quartolegend` and utilize `\notblank` from `etoolbox` package to add a conditional layer.Render: |
1 reply
|
Pandoc has added an option |
1 reply
Answer selected by
danielvartan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Pandoc has added an option
(1@foo)to explicitly reset the numbered example list count. More details here:jgm/pandoc#10940 (comment)