Open KokkieH opened 6 years ago
also noted with the inline code block
suspect is a certain replace text function which is splitting UTF-16 code points. I didn't have a chance to debug but it caught my attention seeing it. possibly we're splitting a grapheme cluster where an invalid split is?
Reported via Twitter
To replicate
What I expected
For the text wrapped in underscores to become Italic.
What happened instead
All but the last two lines of the italicized section became completely scrambled. Removing the trailing underscore fixes the text, but resizing the app window so the italicized section spans fewer than three lines has no effect once the text has been scrambled.
Other observations
The scrambled text does not appear to sync to other versions of the app (confirmed on web, Windows and Android). I'm guessing it's because they don't have live Markdown preview like the Mac app.
If the underscores are added in another version of the app, the text displays correctly italicized in the Mac app, but gets scrambled if you try to remove the trailing underscore in the Mac app. Not if you remove the initial underscore, though.
The issue does not occur in the Mac app if you add the trailing underscore first. In that case the text becomes correctly italicized upon inserting the initial underscore.
Tested on the Mac app v 1.3.3