Skip to content

v3.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Aug 17:03
· 159 commits to main since this release
a039cf8

Additions

  • Specific operators can now be blocked or allow-listed:
    // throws Error: Binary operator / is not allowed.
    jshiki.parse('a / b', {
      operators: {
        binary: { allow: ['+', '-'] },
      },
    })
  • Specific syntax can now be blocked:
    // throws Error: Function calls are not allowed.
    jshiki.parse('a()', {
      syntax: {
        calls: false,
      },
    })

Documentation

  • Fixed edit links by pointing them to the correct branch.
  • Fixed codecov link in the readme.

Full Changelog