How do I get the underlying markdown list number for an ordered list (ol)? #1139
-
I have markdown (that I don't control) that can be in the following format:
I would like to show in the HTML the same number as is in the markdown, i.e. "3." and "4.". Currently, it resets to zero for every ol. I want to respect the markdown ordering. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Markdown numbers based off the first item in the list. If you are seeing a different number, most likely a configuration option, stylesheet, or plugin is modifying your lists. |
Beta Was this translation helpful? Give feedback.
-
is there a way to get that number in the renderer? I'd like to customize the rendered component a bit and use my ui-library. 'start' of the default rendered ol doesn't seem to be available for me as a prop in the renderer to pass to my custom component. E.g.:
|
Beta Was this translation helpful? Give feedback.
Markdown numbers based off the first item in the list.
In your case 3.
If you are seeing a different number, most likely a configuration option, stylesheet, or plugin is modifying your lists.