Prism is a lightweight, robust syntax highlighting library for formatting source code with readable styles. It is useful for adding syntax highlighting to web pages and for extending or contributing new language definitions and themes (see prismjs.com and prism-themes).
Project status
- PrismJS/prism appears actively maintained, with an upstream push as recent as 2026-06-02, and the most recent tagged update in the provided list is v1.30.0 (2025-03-10).
- Update cadence looks irregular, based on tags provided here: v1.30.0 in 2025, then v1.29.0 in 2022, then v1.28.0 in 2022 (a gap of roughly multiple years between 1.28 and 1.29, then about 2 to 3 years between 1.29 and 1.30).
AI summary generated Today
Recent updates
v1.30.0
3/10/2025v1.30.0 primarily tightens Prism's detection of `document.currentScript` so it only returns a value when it is an actual `<script>` element. The release notes mention this explicitly, but the diff also includes website and repository/development tooling changes.
v1.29.0
8/23/2022v1.29.0 is a Prism release that adds many new syntax components (multiple new languages) and updates several existing language definitions and plugins. The release notes provided are essentially empty (only the version header), so most of what changed is not verifiably documented there.
v1.28.0
4/17/2022Release v1.28.0 is mostly a Prism components update, adding many new language grammars and updating existing ones. However, the provided release notes contain no change details, while the code diff shows substantial updates to component definitions and at least one tooling script (benchmarks).
v1.27.0
2/17/2022v1.27.0 adds a new Prism component for the UO Razor Script language, extends Scala highlighting with string interpolation support, and updates the Command Line plugin documentation for output handling and line continuation. Several existing language grammars also changed token definitions (including token alias/type renames). Prism core now throws a hard error when `highlight()` is invoked without a grammar, which can break callers that previously passed missing/undefined grammars.
BreakingFeaturesv1.26.0
1/6/2022Prism v1.26.0 contains a large set of changes across language definitions and the Prism website/build assets (HTML/CSS/JS), plus some CI configuration updates. The provided release notes are effectively empty, so most user-visible and developer-relevant behavior changes are only discoverable by inspecting the code diff (not release documentation).
v1.25.0
9/16/2021The provided release notes for v1.25.0 contain no detailed change log entries beyond the version label. The actual code diff shows a large update dominated by new Prism language components, plus some build/tooling additions (benchmark suite) and a few grammar and metadata changes.
v1.24.1
7/3/2021v1.24.1 includes a Markdown fix intended to make code block highlighting work correctly in NodeJS, and a CSS selector tweak for the Prism Toolbar so styles apply to the correct nested elements. The provided GitHub release notes are essentially empty, so most of the concrete behavior changes are only visible in the actual code diff.
Breakingv1.24.0
6/27/2021Release v1.24.0 has essentially no release-note content in the provided release notes. The actual diff shows a large update that primarily adds many new Prism language components, updates language metadata and a variety of component grammars, and also updates contributor tooling (lint config, CI matrix, and docs).
Featuresv1.23.0
12/31/2020v1.23.0 appears to be a Prism component release focused on adding new language components and improving syntax highlighting behavior via updated regular expressions. The provided release notes themselves contain no specific change list, so the actual impact must be inferred from the code diff.
BreakingFeaturesv1.22.0
10/10/2020The GitHub release notes for v1.22.0 contain no detailed information beyond the version label. The actual code changes are substantial, with many new language components added and several existing language grammars and component metadata updated.