emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob f5d69b7c1525d6355564a0c9f5825cc33f4ea368 1627 bytes (raw)
name: org-media-type.org 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
#+title: Org Media Type
#+author: Joseph Turner
#+options: toc:t ':t author:nil
#+language: en
#+category: worg
#+bind: sentence-end-double-space t
#+html_link_up:    index.html
#+html_link_home:  https://orgmode.org/worg/

#+begin_comment
This file is released by its authors and contributors under the GNU
Free Documentation license v1.3 or later, code examples are released
under the GNU General Public License v3 or later.
#+end_comment

* Introduction

This page tracks information about the ~.org~ extension media type.

Based on [[https://yhetil.org/orgmode/6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com/][this thread on the Org mode mailing list]], the consensus is
that the ~.org~ file extension should map to the ~text/org~ MIME type.

Until the [[file:org-syntax.org][Org syntax spec]] is complete and a proposal submitted to and
approved by IANA, we can ask downstream MIME libraries to override
~applicaion/vnd.lotus-organizer~ with ~text/org~.

* Downstream MIME Libraries

** jshttp/mime-db - NodeJS

[[https://github.com/jshttp/mime-db][jshttp/mime-db]] is the de facto standard MIME database for NodeJS.
[[https://github.com/jshttp/mime-db/commit/5797174e5434a8d2978d9fdc13ec6a47ba20a02f][This commit]] adds a mapping from ~.org~ to ~text/x-org~, but the two
popular NodeJS utilities for getting a MIME type from a file
extension, [[https://github.com/jshttp/mime-types][jshttp/mime-types]] and [[https://github.com/broofa/mime][broofa/mime]], return
~applicaion/vnd.lotus-organizer~.  Both libraries return only the
highest preference media type, and IANA-sourced media types are
preferred over other types.

debug log:

solving f5d69b7c ...
found f5d69b7c in https://list.orgmode.org/orgmode/875xs9am61.fsf@ushin.org/

applying [1/1] https://list.orgmode.org/orgmode/875xs9am61.fsf@ushin.org/
diff --git a/org-media-type.org b/org-media-type.org
new file mode 100644
index 00000000..f5d69b7c

Checking patch org-media-type.org...
Applied patch org-media-type.org cleanly.

index at:
100644 f5d69b7c1525d6355564a0c9f5825cc33f4ea368	org-media-type.org

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).