Closed sorousherafat closed 1 year ago
This is the result of following the CommonMark specification. It is not really a bug. The first <div>
block, without blank lines around contents, should not parse as Markdown text.
Second, it provides a very simple and flexible way of including Markdown content inside HTML tags: simply separate the Markdown from the HTML using blank lines:
Compare:
See also https://github.com/orgs/marp-team/discussions/192#discussioncomment-3375932.
Version of Marp Tool
Marp VS Code v2.6.0
Operating System
Linux
Environment
How to reproduce
write down the following markdown and HTML:
Expected behavior
both of the
div
s should be rendered bold.Actual behavior
only the second
div
is rendered bold.Additional information
I am willing to contribute to the project and perhaps fix the bug, but I will need some guidance regarding the source code.