Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. Pandoc is a free and open-source document converter, widely used as a writing tool and as a basis for publishing workflows.
More at https://pandoc.org/