Pandoc, Markdown, Latex, Pdf, Publishing.
DOCUMENT PROGRAMMING  You can use these minimalistic techniques to configure the layout of your PDF, HTML, and Docx output without fiddling with LaTeX templates. Photo by Bruno Martins on Unsplash The Gist / TL;DR If you write this in Markdown: You can parse it with the help of the Pandoc LUA