daed / laverna

Attention: Development on Laverna has been moved to a new repository at https://github.com/encryptic-team/encryptic. This repository (as well as the master at laverna/Laverna) should be considered depricated.
https://encryptic.org
Mozilla Public License 2.0
38 stars 0 forks source link

& in editor window gets changed to & #4

Closed daed closed 6 years ago

daed commented 6 years ago

This happens for all html special characters.

Type & in the editor window, and the preview will show &. Save the note and it will show a & in the note view. If you reopen that note though, the editor will have changed it from & to &. This I have a problem with. The editor should never alter the source text. This way, the output still conforms to markdown spec, while the input is not sanitized.

daed commented 6 years ago

I have a fix for this already that I'll be committing tonight. I just wanted to put this in as an issue for feedback purposes. Note that my change also conforms to how github works as well.