Skip to content

Releases: chrisjsewell/highlightjs-langs

v0.2.1

Choose a tag to compare

@chrisjsewell chrisjsewell released this 24 Jul 15:00
f0e681d

Fixed

  • The highlight.js peer range is now ^11.3.0 (was ^11.0.0). The rst and
    myst grammars use the hljs.regex helpers introduced in 11.3.0; on older
    11.x, highlight.js silently swallows the registration error and the
    languages never appear. CI now installs the declared floor on every PR so
    the range cannot drift again.

Changed

  • npm description/keywords now mention Cypher.

v0.2.0

Choose a tag to compare

@chrisjsewell chrisjsewell released this 24 Jul 14:23
ca379e1

New

  • Cypher grammar (cypher) — typed, zero-dependency replacement for the
    unmaintained highlightjs-cypher: fixes its ~14 s quadratic freeze on
    degenerate whitespace input, its lookbehind keyword pattern, and its
    theme-unstyled scope; adds missing keywords, parameters and
    relationship-arrow highlighting.
    Use highlightjs-langs/cypher or dist/cypher.min.js.

Hardening

  • Every grammar regex is now statically scanned for ReDoS with recheck in CI,
    alongside a seeded fuzz suite and an expanded pathological-input suite.
  • Several bounded rewrites of rst/myst patterns (no visible rendering changes).

v0.1.1

Choose a tag to compare

@chrisjsewell chrisjsewell released this 24 Jul 11:48
61e4b43

What's Changed

Full Changelog: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@chrisjsewell chrisjsewell released this 24 Jul 11:19
b4b808e

Initial release 🎉

highlight.js grammars for reStructuredText (rst, rest) and MyST Markdown
(myst, mystmd, myst-markdown), shipped as ESM/CJS modules with TypeScript
declarations plus self-registering browser bundles (dist/*.min.js).

  • Browser: load https://cdn.jsdelivr.net/npm/highlightjs-langs/dist/myst.min.js
    (or restructuredtext.min.js) after highlight.js core
  • Node: import { registerLanguages } from "highlightjs-langs"

See the README for the full list of supported constructs and known limitations.