andrey-p / markdown-it-classy

Easily add classes to your markdown
MIT License
25 stars 9 forks source link

Odd behaviour with text formatting syntax omitting space #14

Open pmpinto opened 2 years ago

pmpinto commented 2 years ago

Notice how the caption is different than the text above. Screenshot 2022-05-23 at 23 52 32

Source:

This is a caption with a [link](#) and **bold** text

![alt](https://via.placeholder.com/1000x500)
This is a caption with a [link](#) and **bold** text{caption}

Also tried:

This is a caption with a [link](#) and **bold** text and *some* more{test}

Which outputs: Screenshot 2022-05-23 at 23 57 11

And also:

This is a caption with a [link](#) and bold text and some more{test}

Which outputs: Screenshot 2022-05-23 at 23 58 52 And yes, it's harder to see on this one, but there is no space between the link and the and word.

pmpinto commented 2 years ago

Oh! And just noticed what fixes it:

This is a caption with a [link](#) and **bold** text
{caption}

Either way, I'll leave this open so you decide what to do with it.