SimonFairbairn / SwiftyMarkdown

Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.
MIT License
1.63k stars 269 forks source link

Crash with emoji on iOS 12 #68

Closed spike-hue closed 4 years ago

spike-hue commented 4 years ago

Issue

When adding an emoji to markdown file, the app crashes. This seems to only happen on iOS 12. On iOS 13, I do not get a crash.

This is the string I use in my markdown file.

 🕵️‍♂️ This is a test with an emoji. Soemtimes this crashes. [Links](https://espn.com/)

crash

How to reproduce

Create a markdown file with the string above. Launch the app and try to display the file. App will crash on iOS 12.

Devices

I tested with these devices:

spike-hue commented 4 years ago

Awesome fix!