(prompted by seeing a recent highlight.js upgrade in the website) Someone pointed out shiki (https://shiki.matsu.io) on the Antora zulip recently and I wrote an Antora extension to set it up and use it as the (build time) syntax highlighter in Asciidoctor.
The main point is that the syntax highlighting is grammar based, using the same parsers as VSCode. There isn’t all that much code to be highlighted in the docs, but I’ll make a demo to compare. Perhaps using it would be a good idea. My project is antora-shiki <https://gitlab.com/djencks/antora-shiki>. David Jencks