Mention does not work properly when html tag is put before mention prefix. #879
-
Mention extension does not work when I put html tag before mention prefix which is '@' . configuration
example markdown
expected output
actual output (no
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! According to the CommonMark spec, your example Markdown input contains an HTML block (type 6) which includes
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 inline (instead of an HTML block) by starting the line with some non-HTML like this: This is a <p>test</p> @wadakatu |
Beta Was this translation helpful? Give feedback.
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: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:
Or use an Raw HTML in…