tui.editor
tui.editor copied to clipboard
Switching Between HTML/Markdown
Describe the bug
Switching from HTML with natural line breaks to Markdown will cause invalid HTML tags being inserted into the Markdown
To Reproduce
Type this text into the HTML editor
fdsfdsfdsa
DFSAfds
gfdhdgjhjhg
jhjhhfgjhjgf
JHGhjgjhg
Then switch to markdown and it will produce something like this:
fdsfdsfdsa DFSAfds
gfdhdgjhjhg
jhjhhfgjhjgf
JHGhjgjhg
Notice the
tag? That's not a valid markdown syntax
Expected behavior
I expected the conversion to be valid markdown syntax
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Windows 10