benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.69k stars 2.72k forks source link

Stackedit changes non-breaking spaces to ordinary spaces #723

Open jesperronn opened 9 years ago

jesperronn commented 9 years ago

There is a distinction between different types of whitespace in the content I edit in Stackedit.

In some documents, nobreaking space is used for links to titles of other documents, so that their names do not break on two lines.

Current problem with stackedit that it converts all whitespace to spaces. This makes it appear like a lot of changes happened in your edit.

I want to prevent Stackedit from converting whitespace. Non-breaking space must be preserved.

How could I do that or where should I look?

jesperronn commented 9 years ago

If special characters can be preserved, I would like a special visualization of those. Perhaps functionality/stylesheet to toggle hidden characters. How could I achieve that?

kofifus commented 8 years ago

use  

daiukku commented 6 years ago

This issue remains unresolved, and   is not acceptable, e.g., for Markdown export.

thibault commented 5 years ago

I see that this issue was posted in 2015, and the last comment is from 2017. I'd like to argue that this is quite a serious issue.

As a french user, there is a very important typographic distinction between "normal" spaces and non breaking spaces.

For example, typographic characters like « : », « ; », « » », « ? », « ! » etc. must be preceded by a non breaking space (whereas in english, most of those are not preceded by any space). You can guess that such a character is typed very often.

For this very reason, resolving to type «   » twice or thrice every sentence is hardly a solution.

Would there be a possibility to maybe reconsider this issue?