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
And, the website at https://highlightjs.org/ only has documentation for the current version (version 11). I tried to add a new language to the version 9 one, but it doesn't work. It seems APIs have changed.
I then tried using the highlightjsdir option of AsciiDoctorJ to add CSS/JS of highlight.js version 11. That works for the linked CSS/JS files, but the last inline script part is still the same. The highlightBlock function that is used is deprecated. My browser indicates:
Deprecated as of 10.7.0. highlightBlock will be removed entirely in v12.0 highlight.min.js:108
Deprecated as of 10.7.0. Please use highlightElement now. highlight.min.js:108
Since it is only deprecated, it does function correctly, it seems. Still, I think it would be good to upgrade the highlight.js version used by AsciiDoctorJ, such that there are no deprecation warnings, and it is not necessary to include an own version of highlight.js just to get one that is supported.
The text was updated successfully, but these errors were encountered:
dhendriks
changed the title
highlight.js needs update as it is out of support
highlight.js version 9 used by AsciiDoctorJ needs update as it is out of support
Jan 13, 2024
When I use AsciiDoctorJ, and set
source-highlighter
tohighlight.js
, I get the following in the generated HTML:Version 9 of highlight.js is end-of-life and end-of-support (see highlightjs/highlight.js#2877).
And, the website at https://highlightjs.org/ only has documentation for the current version (version 11). I tried to add a new language to the version 9 one, but it doesn't work. It seems APIs have changed.
I then tried using the
highlightjsdir
option of AsciiDoctorJ to add CSS/JS of highlight.js version 11. That works for the linked CSS/JS files, but the last inlinescript
part is still the same. ThehighlightBlock
function that is used is deprecated. My browser indicates:Since it is only deprecated, it does function correctly, it seems. Still, I think it would be good to upgrade the highlight.js version used by AsciiDoctorJ, such that there are no deprecation warnings, and it is not necessary to include an own version of highlight.js just to get one that is supported.
The text was updated successfully, but these errors were encountered: