npm / marky-markdown

npm's markdown parser
https://www.npmjs.com/package/@npmcorp/marky-markdown
405 stars 71 forks source link

markdown within html #380

Closed kentor closed 7 years ago

kentor commented 7 years ago

Is this not supported?

e.g.

<center>`some code`</center>

Will just show backticks instead of <code>

revin commented 7 years ago

Hi @kentor! I'm not at a computer to verify how this works on github at the moment but I know that in CommonMark, that will be considered either an HTML block or inline HTML, depending on where it appears. And inside HTML, no further markdown is processed.

Our goal is to do whatever github does, so if there's a difference between marky-markdown and github, we consider that a bug.

kentor commented 7 years ago

I just tested on a gist. Yeah github doesn't allow markdown in HTML, so I'll close this. Thanks!