Skip to content
Discussion options

You must be logged in to vote

Hi there!

According to the CommonMark spec, your example Markdown input contains an HTML block (type 6) which includes @wadakatu as-is. With HTML blocks:

Everything until the next blank line or end of document gets included in the HTML block. So, in the [...] example, what looks like a Markdown code block is actually part of the HTML block, which continues until a blank line or the end of the document is reached

The behavior you're seeing will happen with any type of Markdown that co-exists on the same line as the HTML, like in these examples.

To accomplish the expected output, you'll need to move the mention out to a separate line like this:

<p>test</p>

@wadakatu

Or use an Raw HTML in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wadakatu
Comment options

Answer selected by colinodell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants