Hacker News new | ask | show | jobs
by a9h74j 1539 days ago
Perhaps advertise to the browser per se as plaintext, then have an extension look for a magic number or readable flag to indicate specific-markup-type, and translate from there more opportunistically.

Plaintext infrastructure; readable markup; optional (semi-automated?) styling from there.

(Perhaps your higher-up comment already suggests as much.)

1 comments

I think you can just serve text/markdown and things that don't know the markdown subtype will just display as plaintext because of the text main type while things that do e.g. extension registering the mime type will render it. Would need to test to verify though.