markdown-to-jsx
markdown-to-jsx copied to clipboard
Allow alternative ordered list indicators like a. i. A.
I am dealing with converting a legal document to markdown to be shown with this library.
I would like to show ordered lists with different types of ordered list style types like with i. a. A. or I.
Just like what Github is doing below:
- first item i. sub 1 ii. sub 2
- second item a. sub 1 b. sub 2
- third item A. sub 1 B. sub 2
Currently the other types of ordered list items besides numeric are not detected and thus they are rendered with plain paragraph tags.
Image from the output:
HTML supports other list types through the type tag or list-style-type
css attribute.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol#attr-type