Releases: chrisjsewell/highlightjs-langs
Releases · chrisjsewell/highlightjs-langs
Release list
v0.2.1
Fixed
- The
highlight.jspeer range is now^11.3.0(was^11.0.0). The rst and
myst grammars use thehljs.regexhelpers 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
New
- Cypher grammar (
cypher) — typed, zero-dependency replacement for the
unmaintainedhighlightjs-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.
Usehighlightjs-langs/cypherordist/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
What's Changed
- 🧪 Gate npm publishing behind the npm deployment environment by @chrisjsewell in #5
- 🧪 Add alls-green check job for branch protection by @chrisjsewell in #6
- 🔧 Bump version to 0.1.1 by @chrisjsewell in #7
Full Changelog: v0.1.0...v0.1.1
v0.1.0
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
(orrestructuredtext.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.