Hacker News new | ask | show | jobs
by TingPing 25 days ago
More importantly all HTML is valid markdown.
2 comments

Also, there is no such thing as valid markdown.
Putting HTML in markdown defeats the purpose IMHO.
I don't think it does at all!

> The overriding design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

https://daringfireball.net/projects/markdown/

Using some semantic HTML as an occasional escape hatch is perfectly in line with this overall goal.

> without looking like it’s been marked up with tags or formatting instructions.

From your own quote. Embedding html absolutely violates the spirit.

That’s for the markdown content.

HTML embedding as an escape was built in Gruber’s markdown from the start, and is part of why markdown is simple bordering on simplistic: https://daringfireball.net/projects/markdown/syntax#html

That doesn't make it not true though. Markdown generally supports HTML (though oftentimes only a subset), and is typically styled using CSS. Using a web view makes complete sense to me.