-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to use a generic external HTML generator #12127
Comments
Adding a general "command line" tool is not something we're going to do (there are discussions about this). I do, however, have plans on adding some plugin support in this area. This would be Go plugins, but from there you could do whatever you want. This would (potentially) solve some of the current issues with Pandoc, Asciidoc etc., as these new plugins would act as servers the run as long as the build runs. |
Thank you for the prompt response.
Would patches to that effect
Could you please provide some references to the discussions in question? |
It would not be merged. |
Noting some information here for the benefit of others who may come across this Related issue (others are mentioned therein): The discussion in #7529 seems relevant as
The https://gohugo.io/about/security-model/ webpage mentions:
The security policy "restricts access to os/exec, remote communication and |
@bep could you please comment on the security aspect of the planned plugins |
@suhail-singh I will in the implementing issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The RST markup converter uses the external
rst2html
program. However, itisn'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).
The text was updated successfully, but these errors were encountered: