github / cmark-gfm

GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C
Other
909 stars 175 forks source link

invalid stripping of data with numbered lists #352

Closed 3052 closed 1 year ago

3052 commented 1 year ago

this markup:

1. [Google Services Framework 9](//wikipedia.org/wiki/Android_Pie) (2018)
2. Google Play Store 29 (2022)

creates this HTML on this page:

<ol dir="auto">
<li><a href="//wikipedia.org/wiki/Android_Pie" rel="nofollow">Google Services Framework 9</a> (2018)</li>
<li>Google Play Store 29 (2022)</li>
</ol>

but creates this HTML on a readme page:

<ol dir="auto">
<li><a href="//wikipedia.org/wiki/Android_Pie" rel="nofollow">Google Services Framework 9</a></li>
<li>Google Play Store 29</li>
</ol>

the years are stripped for some reason.