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. |
Replies: 3 comments 2 replies
|
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. |
|
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.: |
|
For me, restarting doesn't work: 1. hello
2. world
1. foo bar
2. zoo gets rendered in remark as: |
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.