Repository navigation
Is it possible render markdown inside HTML Blocks? #634
Answered
by
markhalliwell
jasonvarga
asked this question in
Q&A
QuestionI've tried my best to search for the answer, so apologies if this has already been answered. Is there a way to render markdown inside html blocks? Basically, this feature from Markdown Extra: https://michelf.ca/projects/php-markdown/extra/#markdown-attr By adding Right now, markdown inside html just gets output as-is: I understand this would likely need to be an extension. |
Answered by
markhalliwell
Mar 23, 2021
Replies: 2 comments
|
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> |
0 replies
Answer selected by
colinodell
|
Oh awesome, thanks. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is intentional per the commonmark spec. You need to include a blank line after the opening HTML tag and before the closing tag:
Will become:
https://johnmacfarlane.net/babelmark2/?text=%23+Heading%0A%0A%3Cdiv%3E%0A%0A%23+Heading%0A%0A%3C%2Fdiv%3E