DEV Community

Cover image for Export from Org to Markdown in Spacemacs
Rodrigo Medina
Rodrigo Medina

Posted on

Export from Org to Markdown in Spacemacs

Org-mode is one of the coolest features in Emacs and this case Spacemacs. It can be used to write documentation, personal notes, and also schedule your events in an awesome agenda.

In my case, I use Org files to write and export tutorials from one single file to three platforms, which are Medium,, and my blog, using Spacemacs as my main editor.

To be able to export to a Markdown from an Org file, you need to do the following:

1. Make sure you have the markdown layer installed

Having the markdown layer installed will give you a better experience when editing markdown files.

2. Add the md export backend into Spacemacs

You need to add the md value into the export backends variable. The easiest way for me to do this is the following:

Inside Spacemacs type:

M-x customize-option 
Enter fullscreen mode Exit fullscreen mode

and then type org-export-backends.

It will bring a customization buffer in which you can move with the arrow keys, and select the md checkbox to enable it, and then press Enter in the Appy and save button.

Modifying export backends

3. Verify the exportation

After applying and saving the new export backend, you can do a new export doing the following:

With an org file buffer open, type:

, e e 
Enter fullscreen mode Exit fullscreen mode

Exporting menu

This will open the export menu, and now we will see the new markdown option available. If you want to create a markdown file from your org file, inside the previous menu type:

m m 
Enter fullscreen mode Exit fullscreen mode

and this will create a new markdown file from your org file.


From now on, whenever you want to export an org file to a markdown file, you will only need to follow step 3.

If you find this useful, please consider giving it a like.
Happy hacking!

Top comments (1)

gicrisf profile image
Giovanni Crisalfi

Useful and clear. Thanks