Add parantheses to numbering style for Pandoc numbered example list in HTML #12997
adamiturabi
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
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
I just found out that Pandoc has an "Numbered example list" where examples can be listed using
(@)
. See here for details:https://pandoc.org/demo/example33/8.7-lists.html
Here is an example qmd:
This works well out of the box for Latex. However, for HTML, the list numbering is rendered using a period after the number thus:
Instead it should be rendered thus:
Using the parantheses around the number is useful in order to distinguish this "running" example list from other, regular, numbered lists. Otherwise, as in my standalone example above, the rendered output is confusing.
The generated HTML creates an ordered list with
class="example"
. So maybe this can be implemented via CSS?Relevant issue:
Beta Was this translation helpful? Give feedback.
All reactions