Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.98k stars 609 forks source link

<hr> is incorrectly inserted as <p><hr></p> #1304

Closed hy-net closed 1 year ago

hy-net commented 2 years ago

As title. As time goes by, the formatting will become weird because we can have something like

<p>
    some text
    <hr>
</p>

Can we force


always by itself, not enclosed within any other tag?

Alex-D commented 1 year ago

Browser-level bug, I do not want to try to fix that in version 2

Wait for Trumbowyg 3 :)