Blogging with Hakyll and Emacs Org-mode

I finally did it! I polished up my Haskell-fu and wrote a Pandoc reader for Emacs Org-mode. As a result, I can now write blog posts in Org-mode instead of Markdown.

You can find the source code on my github org branch in Pandoc’s main repo.

Supported Features

Not everything works the way it does in Emacs (yet), but support is sufficient for basic document parsing. Here is a short demonstration of currently supported features:

Headlines

  1. Another Headline

    *** Headlines
    
    **** Another Headline
    

Ordered Lists

  1. First
  2. Second
  3. Third
1) First
2) Second
3) Third

Unorders Lists

  • Pandoc
  • Haskell
  • Emacs
    • Gnus
    • Org-Mode
- Pandoc
- Haskell
- Emacs
  + Gnus
  + Org-Mode

Markup

  • emph
  • strong
  • strong-emph
  • code
  • strikeout
  • Sub- and Superscripts
    • 2n
    • 2n-1
    • an
    • an+1
- /emph/
- *strong*
- */strong-emph/*
- =code=
- +strikeout+
- Sub- and Superscripts
  + 2^n
  + 2^{n-1}
  + a_n
  + a_{n+1}

Source Code

Muttering a greeting in Haskell:

#+BEGIN_SRC haskell
main :: IO ()
main = putStrLn greeting
  where greeting = "moin"

#+ENDSRC

Table

Language Typing
Haskell strong, static
Common Lisp strong, dynamic
JavaScript weak, dynamic
| Language    | Typing          |
|-------------+-----------------|
| <l>         | <l>             |
| Haskell     | strong, static  |
| Common Lisp | strong, dynamic |
| JavaScript  | weak, dynamic   |