carbon
carbon copied to clipboard
Upgrade highlight.js to latest
Follow https://highlightjs.org/
Hello! I was looking to contribute to this project starting with this task but unfortunately, this task is blocked by upstream issues. I'm leaving a note here, in case anyone else is interested in working on this task.
Carbon uses dynamic imports when loading highlight.js, which works in highlight.js v10: https://github.com/carbon-app/carbon/blob/c76585e8001e67c08100b81a02a2eee51ab32acc/lib/highlight-languages.js#L3-L5
However, this behavior has changed in v11. This is a bug in webpack, and has also been reported in highlight.js. We can probably proceed with this task once webpack allows dynamic imports again.
Thanks for looking into this @dcshzj!