miyuchina / mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.
MIT License
811 stars 113 forks source link

Fix for #96, Italics parsing broken #155

Closed anderskaplan closed 2 years ago

anderskaplan commented 2 years ago

The issue was that smart quotes, as well as any other non-ascii punctuation characters, were not handled like ascii punctuation in the parsing of emphasis/strong tokens. Solved by including all unicode punctuation in the set of punctuation characters.