Tools like Sphinx or reStructuredText (recommended as a front-end in the article) have their peculiarities too. It's worth having a look at ConTeXt (based on LuaTeX, see
https://wiki.contextgarden.net/Main_Page#/) which avoids a lot of issues with LaTeX.