News for hackers. Stuff that matters.
Re:We Should Have Markdown Rendered Websites by piskerpan on Thursday November 10, 2022 @10:47PM (#33557114)
Nice! You don't need the HTML and BODY tags though.

I think however this defeats the purpose: yes you're delivering the content as Markdown, but you have to deliver it as `text/html` for it to be rendered, so anyone fetching it can't tell it's Markdown content. Also every document has to have (invisible-ish) HTML junk appended

A "better" solution would be a browser that sends the `Accept: text/markdown, text/html` header and a server that serves Markdown only when requested.

There are no comments on this comment yet.