showdown icon indicating copy to clipboard operation
showdown copied to clipboard

Issue with new lines in generated HTML out of MD

Open FilipJakab opened this issue 5 years ago • 1 comments

Hello, Im trying to use this library and I have come across an issue. For simple text like: Some body the library outputs just the original text thats good but when I try to use some formatting e.g. This is **some** <u>body </u>to test it produces this:

"This is **some **<u>content </u>

to test"

The way I make markdown (serves as a reference to below screenshots) image Initialization of showdown image

These are the value and result for just simple bold - that works image

These are the value and result when trying to add underline - this does not work image

In last screenshot of input/output params there is visible, that the showdown does add \n\n after the <u> tag.

Is there something I might be doing wrong?

Thanks in advance

FilipJakab avatar Dec 01 '20 01:12 FilipJakab

Here is jsfiddle: https://jsfiddle.net/fady6hw5/2/

FilipJakab avatar Dec 01 '20 02:12 FilipJakab