Re:We Should Have Markdown Rendered Websites
by bobmaxup on Friday November 11, 2022 @02:00AM
(#33558023)
Flavors of Markdown might be a superset, but as it is normally used, I don't think many would say that Markdown has all the abilities of HTML.
Re:We Should Have Markdown Rendered Websites
by evv on Friday November 11, 2022 @09:28AM
(#33561188)
The original Markdown spec is very clear that HTML is allowed. So MD itself is absolutely a superset of HTML
https://daringfireball.net/projects/markdown/syntax#html
But in practice people mostly use MD variants, such as the "GitHub Flavored Markdown Spec" which may have some limits on HTML usage
Re:We Should Have Markdown Rendered Websites
by bccdee on Friday November 11, 2022 @12:29PM
(#33563767)
The original markdown parser supported html because it was basically just a preprocessor that added some syntactic sugar to html. The proposal here isn't just "what if browsers had a markdown preprocessor" (although I also think that would be questionable), but "what if browsers limited content down to only markdown, so that the web was all just clean, style-agnostic documents," and that clearly requires that markdown not support arbitrary html.
Re:We Should Have Markdown Rendered Websites
by toastal on Friday November 11, 2022 @01:10PM
(#33564420)
That would be the worst world. I love that we have semantic and accessible elements and Markdown is pretty bad in both those categories.
Re:We Should Have Markdown Rendered Websites
by inopinatus on Saturday November 12, 2022 @04:09AM
(#33571435)
Having re-read the article, i must say that this is another incorrect claim. It proposes no such thing. This is one straw man after another.
All it actually suggests is this:
> Let's have markdown rendering in all major browsers soon
On the contrary - Markdown is essentially a superset of HTML, so unless you're using a renderer that strips it from the input, you can have the best of both worlds.
This property was super useful for a lightweight CMS I threw together a few years and which is still used by the original customer today. 99% of what they need to render is easily authored in Markdown, and this further helps ensure a commonality of style and device portability.