Adds support for markdown environments.

Thanks to
https://tex.stackexchange.com/questions/101717/converting-markdown-to-latex-in-latex