typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

Preview wraps incorrectly after an HTML entity in the middle of a word

Open jbrains opened this issue 1 year ago • 0 comments

  • [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:

  1. Type a word with ä in the middle of it using the HTML entity ä, such as the name "Gärtner".
  2. Add words to the beginning of the line to push the name "Gärtner" towards the right edge of the screen.
  3. 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 image

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.

jbrains avatar Jul 29 '22 15:07 jbrains