pavittarx / editorjs-html

A javascript library to parse editorjs clean data to html. It is adaptable and usable in all kind of projects.
https://runkit.com/pavittarx/editorjs-html-example
MIT License
331 stars 61 forks source link

Empty lines are removed when converted #48

Closed Wangtaofeng closed 1 year ago

Wangtaofeng commented 1 year ago

Empty lines are removed when converted

pavittarx commented 1 year ago

This can be an issue with editorjs, this library will parse any data that is provided to plain HTML. Also, do remember, HTML itself does not reserve newlines or spaces. You will need to manage that via CSS.