Reputation: 2017
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?
Upvotes: 0
Views: 374
Reputation: 39488
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
:::
Upvotes: 4