remark-highlight.js is using an old version of lowlight and subsequently, highlight.js.
when using "resolutions" to force lowlight and highlight.js to be the latest versions, I get this error:
Must use import to load ES Module: .../node_modules/lowlight/index.js
require() of ES modules is not supported.
require() of .../node_modules/lowlight/index.js from
.../node_modules/remark-highlight.js/dist/index.js is an ES module file as it is a .js file whose nearest parent
package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename .../node_modules/lowlight/index.js to end in .cjs, change the requiring code to use import(),
or remove "type": "module" from .../node_modules/lowlight/package.json.
"resolutions": {
"highlight.js": "11.0.1",
"lowlight": "2.0.1",
}