Hacker News new | ask | show | jobs
by nashashmi 293 days ago
Markdown should be baked in to browsers as native now.
3 comments

Well since markdown has been designed to be relatively comfortable to read in its source form, I initially thought this link would be an opinion piece on serving raw markdown pages using the browser ability to show text files as is.
> Markdown should be baked in to browsers as native now.

That is not hard to do, if you're okay with adding a script tag in your header.

Yeah but then the script tag will show up in markdown viewers.
I meant add a `<script src=...>` to the `<head>` section of the page.

Not perfect, to be sure, but it lets you create a custom element `<mark-down src=...>` that lets the page author sprinkle markdown everywhere in their page.

Ha! I would love that.