Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.38k stars 314 forks source link

How i can add multiple lines in the editor which can be visible in the preview section as well. #490

Open suhail-chouhan opened 2 years ago

suhail-chouhan commented 2 years ago

Describe your question Currently, we are not able to add multiple lines in the editor which can be seen in the preview section. So, is there any way to add multiple lines in the editor that can be visible in the preview section as well?

Multiple Enter keys are not working in the editor.

Ionaru commented 2 years ago

This is a quirk (feature!) of Markdown, multiple empty lines are treated as one line.

You can instead use a <br> tag in Markdown to create an empty line. The <br> will place an empty line in the preview.

So for example:

First line

<br><br><br><br><br>

Low text

Will result in: image

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br