Are you trying to write your own parsers for these formats or something like that? I don't think I really get the issue you're running into.
If you want to just display formatted text (esp. including HTML), you can use a browser (either as an embedded widget in a custom app, via an Electron app, or in a regular browser via an HTTP server) and generate the output on the fly. You don't need to save the converted output if it's fast enough to generate...