zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 52 forks source link

[remark-ping] Improve parsing to support Unicode #442

Closed StaloneLab closed 3 years ago

StaloneLab commented 3 years ago

Rewrite almost entirely the parser in remark-ping to get better support for Unicode characters in non-fenced pings. For instance, to ping Moté, the most natural way would be @**Moté**, which didn't work before this PR.

The detection of a ping has been changed as follow:

These changes should also make it easier to switch the package to micromark soon, as it already consist of a state-machine.

StaloneLab commented 3 years ago

Of course CI cries because of Node 10... Time to remove it, farewell!