Highlight.js v3.0 Release Notes
-
It is major mainly because now highlight.js has grown large and has become modular. Now when you pass it a list of languages to highlight it will ๐ป dynamically load into a browser only those languages.
Also:
- Konstantin Evdokimenko of RibKit project has created a highlighting for RenderMan Shading Language and RenderMan Interface Bytestream. Yay for more languages!
- ๐ Heuristics for C++ and HTML got better.
- I've implemented (at last) a correct handling of backslash escapes in C-like languages.
There is also a small backwards incompatible change in the new version. The function initHighlighting that was used to initialize highlighting instead of initHighlightingOnLoad a long time ago no longer works. If you by chance still ๐ use it โ replace it with the new one.