HTML Token includes markdown element on the next line #3449
-
Given markdown that looks like this:
Markedjs renders this HTML:
Note that the link has not been converted at all. This is the same for any tag on the line after an html tag:
becomes
If I put a breakpoint in the html tokenizer, I can see that the HTML token includes the tag that follows:
If I remove the newline after the br tag, it renders as expected.
Is this a bug? I'd expect the markdown tags to work in this case. You can test it out on this jsfiddle: https://jsfiddle.net/r6e25pdj/16/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is expected since the commonmark spec says html blocks are ended with a blank line. |
Beta Was this translation helpful? Give feedback.
-
Thank you UziTech for the quick response! |
Beta Was this translation helpful? Give feedback.
This is expected since the commonmark spec says html blocks are ended with a blank line.