Skip to content

Is it possible render markdown inside HTML Blocks? #634

Answered by markhalliwell
jasonvarga asked this question in Q&A
Discussion options

You must be logged in to vote

This is intentional per the commonmark spec. You need to include a blank line after the opening HTML tag and before the closing tag:

# Heading

<div>

# Heading

</div>

Will become:

<h1>Heading</h1>
<div>
<h1>Heading</h1>
</div>

https://johnmacfarlane.net/babelmark2/?text=%23+Heading%0A%0A%3Cdiv%3E%0A%0A%23+Heading%0A%0A%3C%2Fdiv%3E

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage spec compliance Issues or question about compliance with the CommonMark or GFM specs
2 participants
Converted from issue

This discussion was converted from issue #603 on June 12, 2021 13:53.