markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Allow alternative ordered list indicators like a. i. A.

Open jurmous opened this issue 2 years ago • 0 comments

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:

  1. first item i. sub 1 ii. sub 2
  2. second item a. sub 1 b. sub 2
  3. 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:

Screenshot 2022-02-16 at 17 22 35

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

jurmous avatar Feb 16 '22 16:02 jurmous