I know you can add some inline identifiers in pandoc, e.g. Pandoc inline .class and .id elements but is this possible for block elements like lists? What is the syntax to add a class to an ordered list, for example?
Asked
Active
Viewed 236 times
1 Answers
4
Currently, not all pandoc elements accept attributes. List isn't one of them. However, you can wrap your list in a Div, which accepts attributes:
::: {.class #id key=val}
- my list
- items
:::

mb21
- 34,845
- 8
- 116
- 142
-
Thanks... sorry it took so long to mark this. Just as a note, it seems like this was introduced in pandoc 2. – bjw Aug 31 '18 at 15:06