You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rix0rrr
changed the title
Provide the ability to add additional-js files above book.js in index.html (to support custom language highlights) #1870
Provide the ability to add additional-js files above book.js in index.html (to support custom language highlights)
Dec 11, 2024
rix0rrr
changed the title
Provide the ability to add additional-js files above book.js in index.html (to support custom language highlights)
Provide the ability to add additional-js files above book.js to support custom language highlights)
Dec 11, 2024
rix0rrr
changed the title
Provide the ability to add additional-js files above book.js to support custom language highlights)
Provide the ability to add additional-js files above book.js (to support custom language highlights)
Dec 11, 2024
Problem
This is a re-open of #1870. That issue was closed without addressing the underlying problem.
I want to add syntax highlighting for a custom, not super popular language (Alloy).
I can write my own custom JS file with:
But I cannot get mdbook to include my custom JS file before it initializes the page.
Proposed Solution
Include
additional-js
BEFOREbook.js
. Or provide a different key which can be used for scripts that should be included beforebook.js
.Notes
No response
The text was updated successfully, but these errors were encountered: