quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

Ordered list is not generated if there's no newline at the end #578

Open EvgenyOrekhov opened 4 months ago

EvgenyOrekhov commented 4 months ago

Input: 1. Test

Expected:

<ol start="1"><li>Test</li></ol>

Actual:

<span>1. Test</span>

Note: if there is a newline at the end, like 1. Test\n, then it works as expected.