typora-issues
typora-issues copied to clipboard
Preview wraps incorrectly after an HTML entity in the middle of a word
-
[x] Searched existing issues to avoid creating duplicates.
-
[x] Confirmed that it can be reproduced in built-in themes without customized css.
-
[x] Searched http://support.typora.io/
Describe the bug
Preview wraps after the HTML entity ä
in the middle of a word, even though the resulting HTML renders the word correctly without wrapping.
To Reproduce Steps to reproduce the behavior:
- Type a word with
ä
in the middle of it using the HTML entityä
, such as the name "Gärtner". - Add words to the beginning of the line to push the name "Gärtner" towards the right edge of the screen.
- Watch as, eventually, Typora splits the name like so on a line:
... Gä
rtner
Expected behavior The entire name "Gärtner" should never wrap.
Screenshots / Screencasts
Sample Markdown File Paste this Markdown in and resize the window until you see the behavior.
> Quality is value to some person at some time. (Jerry Weinberg, then Markus Gärtner)
Desktop (please complete the following information):
- Pop!_OS 22.04 (Ubuntu 22.04)
- Gnome 42.2 / X11
Typora Version 1.3.6
Additional context I don't know how wide-spread the problem is. Maybe this happens with any HTML entity in the middle of a word.