pandoc
Pandoc, is an app to convert document formats between each other. It's written in haskell and it really awesome. To install it you need to run
# apk add pandoc
LaTeX and conversion to PDF
If you want to convert documents to PDF or want to use LaTeX you need to have LaTeX setted up. You need this for pdf because pandoc first converts the document to LaTeX and then to pdf. It dose this by using external tool like TeX Live.
This will go over the bare minimum to set up TeX live in Alpine Linux. This should work in other distros but the package names might be different. First wee need LaTeX to PDF compiler, by-far the most common one is TeX Live. It also doesn't have many dependencies and it's available almost everywhere. We can install it with the following command.
# apk add texlive
And the last thing wee need is to install texmf-dist which provides some basic templates for LaTeX to work (I think). Everything else should be installed as an dependency.
# apk add texmf-dist-most
Using pandoc
Using pandoc is very simple, for example if you want to convert markdown
to asciidoc you just do $ pandoc input.md -o output.adoc. And
you can do this for many other formats. If you want to learn more about
Pandoc go over to their website.