Pandoc permits you to go markdown --Pandoc-> LaTeX --Pandoc-> EPUB/PDF/HTML+CSS.
While you could go directly from markdown to EPUB/PDF/HTML+CSS, leaving LaTeX in the loop lets you benefit from the amazing typesetting knowledge that Don Knuth has embedded in the TeX suite of tools (PDF will look prittier).
While you could go directly from markdown to EPUB/PDF/HTML+CSS, leaving LaTeX in the loop lets you benefit from the amazing typesetting knowledge that Don Knuth has embedded in the TeX suite of tools (PDF will look prittier).
Pandoc conversions: https://pandoc.org/demos.html
Pandoc Demo: https://pandoc.org/try/