How can I nest interruption-proofed enumerated lists [(@)]? #7751
Unanswered
Gewerd-Strauss
asked this question in
Q&A
Replies: 1 comment
-
See Pandoc documentation about list: https://pandoc.org/MANUAL.html#lists also in Quarto documentation https://quarto.org/docs/authoring/markdown-basics.html#lists. If you follow the nested rules described in both documentation you get what you want: ---
format: html
---
1. A
1. B
1. C
Whatever text
1. D
> Quotes
1. E
1. F
```{r}
#| eval: false
"code"
```
1. G
1. H
1. I ![]() Side note: is the formatting style of your code intended because it kind of not follow any rules. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I am trying to wrap my head around how to control numbered lists around codeblocks. Usually, you can use
(@)
to force continued enumeration when dealing with interruptions, as detailed in the documentation. This syntax however does not seem to allow complex nesting that easily. I've experimented with a couple of things, but so far I could not figure out how to nest this kind of list successfully:This results in the following html-doc (rendered via rstudio):
I would intend the lists to be enumerated as follows, in order of occurence:
Alternatively, I believe this would be a bit closer to the current method:
Currently, as far as I know one has to choose between keeping enumeration to handle disruptors and using traditional lists to handle nesting - which is bad if you need both.
Is this the case, or is there a way that I am unaware of which allows me to combine both aspects?
Addendum 30.11.2023 13:13:
docx
does not exhibit this issue, here lists are properly enumerated as outlined as expected above.pdf
does exhibit the same issue ashtml
.Thank you,
Sincerely,
~Gw
Beta Was this translation helpful? Give feedback.
All reactions