archive2026

Org-mode and Markdown: which I use for what

A practical comparison of Org-mode and Markdown for notes, runnable documentation and publishing a blog, with the export step that makes them work together.

3 min read#dev#emacs#writing

Blog posts are usually written in Markdown, but my own notes are in Org-mode. When I set up a blog I had to think about why. I use both, and they can do most of the same things. My split is simple: Markdown for anything that leaves my machine (blog posts, READMEs, pull requests, prompts for language models), Org for anything I work in (lab notebooks, runnable procedures, task lists, long-lived notes). The longer answer is below.

Comparison

Markdown Org-mode
Where it works Everywhere: GitHub, editors, static site generators, chat tools Best in Emacs. Other editors have partial support
Learning curve Minutes Weeks to be comfortable, longer to use all of it
Executable code No (needs notebooks or extra tooling) Yes: Babel runs code blocks and inserts results
Tables Basic pipe tables Pipe tables with spreadsheet-style formulas
Tasks and time Checkboxes TODO states, scheduling, agenda views, clocking
Structure Headings and lists Folding, outline editing, properties, tags on any heading
Export Native to most tools HTML, PDF via LaTeX, Markdown and more
Publishing to a static site Direct: most generators read it One export step
Collaboration Almost everyone can read and edit it Collaborators need to know Org or read an export

What Org does better

The main thing for me is runnable documentation. A code block can be executed and its output stored in the document:

#+begin_src bash :results output
docker compose ps
#+end_src

For infrastructure notes this is very useful: you can run the steps again instead of copying commands by hand. You can also extract blocks into real files with :tangle, so a document becomes the source of a configuration.

Tables can calculate: a #+TBLFM: line turns a table into a small spreadsheet, which is handy for benchmark results.

And tasks, deadlines and notes live in the same file as the technical content.

What Markdown does better

Everyone can read it. Every static site generator, every Git host and every language model handles it, and I have never had to explain it to anyone. If I change editors or publishing tools, my Markdown files do not care. It also has fewer features, so there are fewer ways to write the same thing, and documents from different people look alike.

That is why I would not recommend Org to someone just to be organized. It pays off over months, and only if you use the features beyond headings. If you work with people who do not use Emacs, Markdown is the format they can open.

Using both: write in Org, publish Markdown

Static site generators such as Hugo or Astro want Markdown with YAML front matter. Two details cost me time the first time:

  1. The built-in exporter uses indented code blocks. Syntax highlighting needs fenced blocks with a language name. Use the ox-gfm exporter (or pandoc -f org -t gfm) to get fenced code.
  2. Front matter is not generated. An export block at the top of the Org file passes it through unchanged:
#+begin_export md
---
title: 'My post'
description: 'One sentence.'
pubDate: 2026-09-20
tags: ['dev']
---
#+end_export

Then export to Markdown and drop the file in src/content/blog/. It is one more step, but I do not mind it. Reading the exported text is when I catch most of my mistakes, before anything goes live.