From org to markdown

2018-03-24

Configure Emacs to enable orgmode markdown exports for Jekyll use.

Code blocks

putStrln "Hello World!"

Use the org-export-dispatch (C-c e) and export to a temporary buffer.

Add highlighting tags, eg {% raw %} {% highlight python %} … {% endhighlight %} {% endraw %} for non-default languages.

{% highlight python %}

print("Hello world!")

{% endhighlight %}

Add the YAML front-matter to make Jekyll display the post.

{% highlight yaml %}

---
title: "From org to markdown
tags: "meta"
---

{% endhighlight %}

Add your configured excerpt_separator e.g: <!--more--> to the post.