markdown-to-jsx icon indicating copy to clipboard operation
markdown-to-jsx copied to clipboard

Spaces between HTML tags are ignored

Open Mitelak opened this issue 3 years ago • 3 comments

Hi, I found an issue with parsing HTML tags.

When HTML tags are presented one after another e.g. <a>link</a> <strong>text</strong> the output doesn't include space between tags. What interesting spaces aren't trimmed if there is text between tags or if we use markdown syntax instead of HTML tags.

It can be reproduced on https://probablyup.com/markdown-to-jsx/ using this code snippet:

Example of an issue

in this case spaces are ignored -> <b>bold</b> <i>italic</i> <u>underscore</u>

if there is text between tags it works as expected -> <b>bold</b> notag <u>underscore</u>

it also works for markdown -> **bold** *italic*

image

Mitelak avatar Jun 25 '21 11:06 Mitelak

This issue still exists in the latest version.

stevemckenzie avatar May 06 '23 00:05 stevemckenzie

Have you found a solution?

mixa9269 avatar Nov 21 '23 19:11 mixa9269