logoalt Hacker News

sheeptyesterday at 12:02 AM2 repliesview on HN

(CommonMark) Markdown is a rough superset of HTML, like how YAML is a superset of JSON. So whatever can be expressed in HTML can also be expressed in Markdown. With the way the CommonMark spec is written, Markdown is effectively just an HTML preprocessor.

A major limitation of Markdown is the lack of standardization. For example, even within GFM there's multiple subtle variants: a single new line becomes a space when rendering Markdown files, but a line break in issue comments.


Replies

qingcharlesyesterday at 1:41 AM

It's enormously frustrating that there has been no standardization of the core base-level Markdown elements.

If you allow Markdown input you have to give a cheatsheet showing which "flavor" you are using.

show 2 replies
cbm-vic-20yesterday at 12:26 AM

> whatever can be expressed in HTML can also be expressed in Markdown.

I suppose, since Commonmark specifically has HTML block and raw HTML inlines, any chunk of HTML is by definition valid Markdown.