Skip to content

Syntax.js v1.1.0 - New custom triggers, performance tweaks, and fixes!

Compare
Choose a tag to compare
@williamtroup williamtroup released this 02 Dec 12:13
· 355 commits to main since this release
87c1e36

General Improvements:

  • The render() method now only scans for "div" and "code" DOM element types (faster).
  • When a specific language is not supported, a new error log is shown in the console.

Custom Triggers:

  • Added new custom trigger "onKeywordRender", which is called when a keyword is rendered (before main render completion).
  • Added new custom trigger "onStringRender", which is called when a string is rendered (before main render completion).
  • Added new custom trigger "onCommentRender", which is called when a comment is rendered (before main render completion).

Documentation:

  • Fixed documentation missing references that prevented the library from working properly.
  • Improved the README.md and README_NUGET.md documentation.