Hacker News new | ask | show | jobs
by Andrex 1113 days ago
What if... Markdown was its own MIME type and browsers rendered it with a default stylesheet? :thinking_emoji:
4 comments

Fine, `text/commonmark`, with a `.md` extension since Gruber doesn’t use that?
That's probably how it would work out.
The standard answer to this is that there's too many variants.

I think it should be a thing anyway. If Blink, Webkit and Firefox have compatible implementations there can be some sort of de facto standard and it will be fine for a number of actually useful things, even if it's not perfectly defined to pocket protector standards.

Yes, it could even start as a browser extension.
Markdown does have a MIME type, as defined in RFC-7763 and RFC-7764. Markdown was rejected from Gemini for being too complex. "text/gemini" can be parsed line by line, which is why it was defined the way it was.
What if browsers had a default stylesheet that doesn't suck? The fact that twitter bootstrap had to exist at all should embarrass browser vendors. If people could write their html like motherfuckingwebsite and trust the browser to make it look decent, the web would be a much better place.
That would be nice, but unfortunately improving the default styles now would break an ungodly number of things. Cat's out of the bag now, people rely on the crappy defaults (save for the minor differences between browsers).