Description
The RST markup converter uses the external rst2html
program. However, it
isn't intended for converting arbitrary markup to HTML. It has been written
specifically to support the conversion of RST documents to HTML and for Hugo to
leverage that capability.
It would be helpful for a user to be able to provide Hugo an arbitrary
commandline invocation that generates HTML for a given document. For
flexibility, the provided commandline invocation could, perhaps, have some
placeholder syntax for specifying the name of the file (that is being processed
by Hugo). Hugo would substitute in the name of the file into the provided
invocation and then invoke the external process for generating the HTML.
With such a capability, a user would be able to, for instance, more easily
customize the generated HTML using a programming language of their choice and/or
reuse existing HTML generators written in other languages. For instance, having
such a capability one would be able to use Emacs itself to export Org mode
document to HTML (using one of several different possible Emacs Org HTML
exporter packages).