My workaround is to use pandoc, a tool that can basically convert all text base formats into each other - it also works similar to what your example cli looks like.
However it will not respect your theme, you would need to configure pandoc manually.
A few pointers:
https://www.pandoc.org/demos.html