4 ms·
As far as I’m aware, you can write any HTML in Markdown, and it will be rendered normally. So Markdown can indeed contain any and all HTML. HTML can’t contain
by pocketarc 4y ago
As far as I’m aware, you can write any HTML in Markdown, and it will be rendered normally. So Markdown can indeed contain any and all HTML.
HTML can’t contain Markdown at all - a ### in HTML does nothing but a <strong>hello</strong> in Markdown does exactly what you expect it to.
- graypegg 4y agoOh I see, my mistake. Thanks!
- jbverschoor 4y agoSo you can't create a simple markdown rendered without creating a full-blown html/css renderer. So a cli renderer doesn't make sense either in that case. Html 'support' is just a hack for any shortcomings of markdown.
- masswerk 4y agoTo be fair, you can include Markdown inside script tags (assign a custom type like "text/markdown") and render this (the script's innerHTML) by another script.
- pdpi 4y agoIf you think about it in terms of syntax, then sure. Markdown is a superset of HTML. I think it's much more meaningful to compare their semantics instead. From that point of view, Markdown is a nicer, more human-readable syntax for a very small subset of html, plus an escape hatch to reach the rest of HTML using conventional syntax.
- barrucadu 4y agoA ### in Markdown doesn't "do" anything either, the reader just has to know that it denotes a 3rd level heading.
- Izkata 4y ago> As far as I’m aware, you can write any HTML in Markdown, and it will be rendered normally. It depends on your parser. Commonmark, for example, has rules for entering html mode: https://spec.commonmark.org/0.29/#html-blocks https://spec.commonmark.org/0.29/#html-blocks Neither is truly a superset of the other.