Hacker News new | ask | show | jobs
by sharkbrainguy 5438 days ago
Pandoc does that already http://johnmacfarlane.net/pandoc/

Pandoc is written in haskell but there's c bindings to it https://github.com/toyvo/libpandoc so you can use it from anywhere.