sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

Unicode caracters compatibility as marker #799

Closed edwinallan closed 3 years ago

edwinallan commented 3 years ago

Hello,

There is an issue by which the marker used for Blocks and Inline doesn't work with unicode characters. For example, I want to add the character "✓" in my extended class but that doesn't work.

It's actually very simple, all that is needed is to replace the line in "linesElements": marker = $text[0]; with $marker = mb_substr($text, 0, 1);

And voila!

Could someone push this to the latest release? Thanks