We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am not able to include a JavaScript module in the additional_js option.
additional_js
Example:
<!-- Custom JS scripts --> <script src="custom-js/index.js" type="module" async></script>
Currently, the configuration is only a list of file name strings. Also the custom head.hbs cannot be used as additional_js is only for local files.
head.hbs
Provide new additional-js-attributes option augmenting the existing additional-js option.
additional-js-attributes
additional-js
[output.html] additional-js = ["custom-js/index.js", "custom-js/xtermjs"] additional-js-attributes = [ [ { type = "module" }, { async = true }, ], [ { type = "module" }, { async = true }, ], ]
Demo implementation is here master...h7kanna:mdBook:additional-js-attributes
The text was updated successfully, but these errors were encountered:
@rustbot claim
Sorry, something went wrong.
h7kanna
No branches or pull requests
Problem
I am not able to include a JavaScript module in the
additional_js
option.Example:
Currently, the configuration is only a list of file name strings.
Also the custom
head.hbs
cannot be used as additional_js is only for local files.Proposed Solution
Provide new
additional-js-attributes
option augmenting the existingadditional-js
option.Example:
Notes
Demo implementation is here master...h7kanna:mdBook:additional-js-attributes
The text was updated successfully, but these errors were encountered: