Pandoc is a markup format conversion utility written in Haskell. It is the swiss army knife of markup formats, it can really convert been almost anything.
Installation
Pandoc provides official statically compiled binaries on their Github repo.
Pandoc Server
When bulk-processing inputs in a script, it can be a little slow to spawn a pandoc subprocess for each document. Instead, you can use the built-in pandoc-server
to spawn a persistent server and send each document over.
This command starts a pandoc server on port 1456.
./pandoc-server -p 1456