Back to Highlight Js

VERSION 10 BREAKING CHANGES

VERSION_10_BREAKING_CHANGES.md

11.11.11.7 KB
Original Source

Version 10 Breaking Changes

Incompatibilities:

  • chore(parser): compressed version 9.x language definitions no longer supported (rebuild them minified) Josh Goebel
  • nohightlight and no-highlight are the only "ignore me" css classes now (plain and text no longer count) (to get the old behavior you can customize noHighlightRe)
  • a grammar with a top-level self reference will now always throw an error (previously in safe mode this would be silently ignored)
  • PHP templates are now detected as php-template, not xml

Renamed Language Files:

Legacy Browser Issues:

  • We're now using ES2015 features in the codebase. Internet Explorer 11 is no longer supported.
  • In general legacy browsers are no longer supported.
  • chore(parser): remove load listener in favor of only the newer DOMContentLoaded Josh Goebel

Removed styles:

  • chore(styles): darkula.css (use darcula.css instead) Josh Goebel

Also see: https://github.com/highlightjs/highlight.js/issues/2273