mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.66k stars 873 forks source link

Ordered List Items using `)` are not escaped correctly #381

Open spiltcoffee opened 3 years ago

spiltcoffee commented 3 years ago

Input:

<p>1) ordered list item</p>

Expected output:

1\) ordered list item

Actual output:

1) ordered list item

What I think the issue is:

Only the Dot . version of numbered list items is escaped:

CommonMark supports Ordered List items using either Dot . or Parenthesis ) syntax: