Tips about how to use highlight.js
While developing GitLink, I needed code highlighting functionality, so I researched highlight.js and discovered some implementation details worth noting.
Import highlight.js
For web pages requiring CDN import or direct src import, you should not use highlight.js resources directly, but rather use highlightjs/cdn-release
.
For projects involving build tools, you should use the npm package of highlight.js
.