sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

New lines are submitted as '/n' and then not rendered correctly in the editor #786

Open justuseapen opened 4 years ago

justuseapen commented 4 years ago

I would expect the '/n' to be rendered as a newline.

xfoscarz commented 4 years ago

You got the character wrong, its \n, not /n

justuseapen commented 4 years ago

Ah sorry, it's automated, I just mistyped /n.

Let me be more clear.

When I include a enter-key style line break. It SAVES IN THE DATABASE as a \nand then is rendered \n when I return to the input form.

ogradye commented 3 years ago

Hmm, I'm having quite to opposite problem. I was expecting enter-key line breaks to include \n but they dont. They contain white spaces

erossini commented 2 years ago

I have the same issue of @justuseapen