41

The emacs functions mentioned in the docs don't seem to exist in my org version 7.9.3f.

http://orgmode.org/manual/Markdown-export.html

Any idea how I can get org-mode to export to markdown for me without pulling my hair out?

7
  • 1
    I have version 8.2.10 of org-mode, installed from melpa, and these two functions are available for me.
    – Trevoke
    Commented Dec 10, 2014 at 19:11
  • 1
    yeah I guess I pulled 8.1.x from ELPA and they don't exist... bah Commented Dec 10, 2014 at 19:23
  • Check this out and take a look inside org-mode? I'm guessing you won't have the ox-md.el file but who knows. orgmode.org/worg/exporters/ox-overview.html
    – Trevoke
    Commented Dec 10, 2014 at 19:28
  • 5
    Is upgrading Org Mode a valid option? Or should this be read as "How can I add Markdown export support to Org 7.9.3f?". Commented Dec 10, 2014 at 19:54
  • 3
    Markdown was not appearing for me as an option in the Org Export Dispatcher until I ran M-x org-md-export-to-markdown. After that it appeared every time afterwards, including after restarts.
    – Conor
    Commented Mar 30, 2015 at 0:07

5 Answers 5

38

You should customize org-export-backends and enable the markdown backend.

M-x customize-option and then org-export-backends and then arrow down to the checkbox to the left of 'md' and press enter to enable it (or just click on it, if running emacs graphically). Then arrow back up and over to 'Apply and Save' (or click on it).

After customizing, run M-x org-md-export-to-markdown. Now you should have a new markdown file in the same directory which is an export of the original org mode file.

1
  • 14
    That's: M-x customize-option and then org-export-backends and then arrow down to the checkbox to the left of 'md' and press enter to enable it (or just click on it, if running emacs graphically). Then arrow back up and over to 'Apply and Save' (or click on it).
    – may
    Commented Jul 9, 2016 at 1:53
9

It can be done using pandoc:

pandoc -s progress.org -o progress.md

or if you have a lot of files to convert:

mkdir md
for f in *.org; do pandoc "$f" -s -o "md/${f%.org}.md"; done
2
  • 2
    How about a link to info about pandoc?
    – Drew
    Commented Jun 4, 2018 at 18:50
  • 1
    I didn't feel it's worth the time / effort to find the url and copy and paste the link. But I welcome anyone to edit my answer with this information. Commented Jun 4, 2018 at 18:56
8

I just ran into this package:

https://github.com/larstvei/ox-gfm

If you want specifically Github-Flavored Markdown, that should help.

4

The two functions mentioned in the Link you mentioned, as of Org-mode version 8.0, are part of the ox-md.el that has become part of the New Exporter Framework.

For upgrade instructions and more information take a look at the Upgrade Guide and also the announcement of this new framework by its author Nicolas Goaziou.

1

Have you tried

(eval-after-load "org"
  '(require 'ox-md nil t))

as discussed in this answer? Once loaded you should see the export option in the normal org export list.

1
  • The answers indicated he needed to enable the backends. As an aside using ox-gfm, I needed this: (use-package ox-gfm :defer 3 :after org)
    – RichieHH
    Commented Jan 13, 2020 at 22:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.