What is the markdown mime type?

Does anyone know if mime type exists for markdowns? I assume this is plain text, but is there more specific?

+76
mime-types mime markdown plaintext
May 22 '12 at 12:24
source share
4 answers

There is no official standard type, but text / markdown seems to be the most common de facto. Most browsers and other reasonably complex clients are likely to see text / and the default is text / plain , so there is not much difference.

One caveat: all types under text / hiearchy default to ISO-8859-1 for their character type in the relevant RFC standards. Since then, much of the world has switched to UTF-8. Therefore, if you are not sure that you will not use any funny characters (or live in the old Windows world), you can specify it as follows:

text/markdown; charset=UTF-8 
+86
May 31 '12 at 15:50
source share

tl; dr: text/markdown since March 2016

In March 2016, text/markdown was registered as RFC7763 at the IETF .

It used to be text/x-markdown . The text below describes the situation until March 2016, when RFC7763 was still a draft.




There is no official recommendation for the definition of Grubers , but the topic has been discussed quite strongly on the official mailing list and has reached the choice of text/x-markdown .

This conclusion was disputed later , was confirmed and maybe, IMO, is considered consensus.

This is the only logical conclusion in the absence of the official mime type: text/ will provide the correct default almost everywhere, x- , because we do not use the official markdown type, and not gruber. or whatever the type is now so common.

However, there are unknowns regarding the different Markdown “flavors”. I think someone should register an official type, which is supposedly easy , but I doubt that someone would dare to do this outside of John Gruber, since he recently proved his affection for Markdown.

There is a draft in the IETF, but the content doesn't seem to describe Markdown at all, so I won’t use it until it is more complete.

+68
Sep 12 '14 at 15:51
source share
+6
Mar 27 '15 at 7:53 on
source share

Found this topic since 2008: http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg00973.html

It seems that the mime type text/vnd.daringfireball.markdown should be registered by Markdown, as long as the mime type Markdown cannot be specified as text/x-markdown .

+5
May 22 '12 at 12:36
source share



All Articles