tui.editor icon indicating copy to clipboard operation
tui.editor copied to clipboard

Switching Between HTML/Markdown

Open livevsonline opened this issue 2 years ago • 0 comments

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. image

Desktop (please complete the following information):

Windows 10

livevsonline avatar Aug 25 '22 07:08 livevsonline