Hello, What MIME type do people use for Markdown? text/markdown? text/plain? Suggestions? Thanks in advance. Kind regards, PA.
* Petite Abeille <petite.abeille at gmail.com> [2008-02-03 17:55]:> What MIME type do people use for Markdown?Regrettably, there still isn?t one registered for Markdown. If my reading of [RFC?4288] is correct, John shouldn?t have any trouble registering eg. `text/vnd.daringfireball.markdown` using the application form at <http://www.iana.org/cgi-bin/mediatypes.pl>. (Most of the ?mandatory? fields in that form apply only to MIME types registered in the standards tree, not the vendor tree.) Hint hint, nudge nudge. [RFC?4288]: http://tools.ietf.org/html/rfc4288> text/markdown? > text/plain? > > Suggestions?I end up using `text/plain` most of the time because browsers throw up a download box whenever they encounter an unknown MIME type, even though [RFC?2046] explicitly says they should treat any unknown `text/*` MIME type as `text/plain`. [RFC?2046]: http://tools.ietf.org/html/rfc2046 Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
Aristotle Pagaltzis wrote on 2008/02/03 19:46:> * Petite Abeille <petite.abeille at gmail.com> [2008-02-03 17:55]: > >> What MIME type do people use for Markdown? >> > > Regrettably, there still isn???t one registered for Markdown. If my > reading of [RFC? 4288] is correct, John shouldn???t have any trouble > registering eg. `text/vnd.daringfireball.markdown` using the > application form at <http://www.iana.org/cgi-bin/mediatypes.pl>. > (Most of the ???mandatory??? fields in that form apply only to MIME > types registered in the standards tree, not the vendor tree.) > > Hint hint, nudge nudge. > > [RFC? 4288]: http://tools.ietf.org/html/rfc4288 > > >> text/markdown? >> text/plain? >> >> Suggestions? >> > > I end up using `text/plain` most of the time because browsers > throw up a download box whenever they encounter an unknown MIME > type, even though [RFC? 2046] explicitly says they should treat > any unknown `text/*` MIME type as `text/plain`. > > [RFC? 2046]: http://tools.ietf.org/html/rfc2046 > > Regards, >When this came up on the list before [1][] I think there was a consensus that text/x-markdown is usable -- possibly with a URI to identify the Markdown syntax used. Did I understand that correctly? -- Thomas. [1] http://six.pairlist.net/pipermail/markdown-discuss/2007-June/000640.html and ensuing discussion
* Thomas Nichols <nichols7 at googlemail.com> [2008-02-04 14:10]:> When this came up on the list before I think there was a > consensus that `text/x-markdown` is usable -- possibly with a > URI to identify the Markdown syntax used. > > Did I understand that correctly?Yes, you did. Using a type with a subtype starting with `x-` is permissible, and in absence of a registered MIME type, the only thing that third parties can do. Note [RFC?4288, section 3.4][1], though: However, with the simplified registration procedures described above for vendor and personal trees, it should rarely, if ever, be necessary to use unregistered experimental types. Therefore, use of both "x-" and "x." forms is discouraged. [1]: http://tools.ietf.org/html/rfc4288#section-3.4 Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
Aristotle Pagaltzis wrote on 2008/02/04 13:44:> * Thomas Nichols <nichols7 at googlemail.com> [2008-02-04 14:10]: > >> When this came up on the list before I think there was a >> consensus that `text/x-markdown` is usable -- possibly with a >> URI to identify the Markdown syntax used. >> >> Did I understand that correctly? >> > > Yes, you did. Using a type with a subtype starting with `x-` is > permissible, and in absence of a registered MIME type, the only > thing that third parties can do. > > Note [RFC? 4288, section 3.4][1], though: > > However, with the simplified registration procedures > described above for vendor and personal trees, it > should rarely, if ever, be necessary to use unregistered > experimental types. Therefore, use of both "x-" and "x." > forms is discouraged. > > [1]: http://tools.ietf.org/html/rfc4288#section-3.4 > > Regards, >Yup, I remembered that -- their definition of simplified may differ from mine ;-) This from Sam Angove is informative: http://six.pairlist.net/pipermail/markdown-discuss/2007-June/000646.html Andrea Censi confirmed that [Maruku documents could be identified by profiles][] and use: "text/x-markdown; profile=http://maruku.org/syntax/#ver" though there was some ensuing discussion about the legitimacy of fragment identifiers for this purpose (or at least of parsing them, instead of considering the URIs to be opaque). If we could reach consensus about mime-type / profile, we could perhaps submit them to Mozilla/Opera as recognised types to be rendered as text/plain if no helper is installed? [Maruku documents could be identified by profiles]: http://six.pairlist.net/pipermail/markdown-discuss/2007-June/000661.html -- Thomas.