parsedown icon indicating copy to clipboard operation
parsedown copied to clipboard

Unicode markers

Open edwinallan opened this issue 5 years ago • 1 comments

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

edwinallan avatar Sep 16 '20 19:09 edwinallan

Do you have a example you could share where this is happing?

BenjaminHoegh avatar Oct 16 '20 15:10 BenjaminHoegh