Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs org-mode export markdown

Tags:

I have some weird behavior, I don't actually know if it's a bug or something else. When I do C-c C-e the option to convert to markdown doesn't appear. Nonetheless I can type the option M-x org-md-export-as-markdown and after I do that, the option export to markdown appears in the C-c C-e menu.

Any Ideas?

like image 462
silgon Avatar asked Apr 10 '14 12:04

silgon


People also ask

How do I export from Markdown to org?

The Markdown export back-end, “md”, converts an Org file to Markdown format, as defined at http://daringfireball.net/projects/markdown/. Since it is built on top of the HTML back-end (see HTML Export), it converts every Org construct not defined in Markdown syntax, such as tables, to HTML.

How do I convert Org mode to PDF?

To export your org file to a web page, type C-c C-e to start the exporter and then press h to select html and o to select open. A new web page should now open in your browser. Similarly, typing l and o in the exporter will convert the org file to latex and then compile it to produce a pdf and display that.

Does Emacs come with Org mode?

Emacs has included Org Mode as a major mode by default since 2006. Bastien Guerry is the current maintainer, in cooperation with an active development community. Since its success in Emacs, some other systems now provide functions to work with org files.


2 Answers

If you are using Org-mode version 8.0 or later (check with M-x org-version), the export framework is broken up into several libraries that are not necessarily loaded by default.

Something like this in your Emacs configuration can load the Markdown exporter automatically with Org-mode:

(eval-after-load "org"   '(require 'ox-md nil t)) 
like image 138
Chris Avatar answered Sep 30 '22 05:09

Chris


After emacs 25,you just need add a line in your emacs configuration file: .emacs

(require 'ox-md nil t) 
like image 45
Gordon yao Avatar answered Sep 30 '22 07:09

Gordon yao