Is it possible render markdown inside HTML Blocks? #634
-
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. |
Beta Was this translation helpful? Give feedback.
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> |
Beta Was this translation helpful? Give feedback.
-
Oh awesome, thanks. |
Beta Was this translation helpful? Give feedback.
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