lezer-based HTML grammar
Last release 8 months ago
22 Dec 2025
Ships unpredictably
gaps range from 8 days to 1.3 years
Nearly every release is documented
notes for 23 of 23 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
23 releases · first in 2021
Release timeline
23 releases since 2021One column per quarter.
Releases
- 1.3.1322 Dec 2025
Release notes2 sources agree
Open source →Bug fixes
Set the
bracketedflag for nested parses inside quotes or tags. - 1.3.1226 Sept 2025
Release notes
Open source →Bug fixes
Emit tokens for
<characters without tag name, so that autocompletion can work with them.Additional notes
Open source →Bug fixes
Emit tokens for
<characters without tag name, so that autocompletion can work with them. - 1.3.1125 Sept 2025
- 1.3.1029 May 2024
Release notes2 sources agree
Open source →Bug fixes
Fix an issue that broke attribute reading when defining a nested language on a tag that isn't a
style,textearea, orscripttag. - 1.3.921 Feb 2024
Release notes
Open source →Bug fixes
When using the "selfClosing" dialect, fix parse errors for
<br/>(tags that implicitly self-close) and<script/>(special tags).Additional notes
Open source →Bug fixes
When using the "selfClosing" dialect, fix parse errors for
<br/>(tags that implicitly self-close) and<script/>(special tags). - 1.3.828 Dec 2023
Release notes2 sources agree
Open source →Bug fixes
Add
bidiIsolatenode props for tags, comments, and attributes.Mark tags, attributes, and comments as isolating for bidirectional text.
- 1.3.723 Nov 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that caused the parser to not properly recognize empty HTML comments. Don't emit nested parses for empty elements in configureNesting
Fix an issue where
configureNestingcould emit empty overlay ranges for empty elements. - 1.3.612 Jul 2023
Release notes2 sources agree
Open source →Bug fixes
Improve parsing of multiple unfinished opening tags by disallowing less-than characters in attribute names.
- 1.3.53 Jul 2023
Release notes2 sources agree
Open source →Bug fixes
Make the package work with new TS resolution styles.
- 1.3.427 Mar 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that caused mixed parsing of non-style/script elements to attach the nested parse tree to the incorrect node.
- 1.3.321 Feb 2023
- 1.3.216 Feb 2023
Release notes
Open source →Bug fixes
Fix a crash caused by nexted parsing of attributes returning invalid ranges for attributes missing their closing quote.
- 1.3.111 Feb 2023
- 1.3.016 Dec 2022
Release notes
Open source →New features
configureNestingnow supports targeting tags other thanstyle,script, andtextarea. - 1.2.025 Nov 2022
Release notes
Open source →New features
configureNestingnow takes a second argument that can be used to specify that the value of some attributes should be parsed with an external parser. - 1.1.118 Nov 2022
Release notes
Open source →Bug fixes
Align allowed characters in unquoted attribute values with the spec. Replace another unicode escape with a character
- 1.1.016 Nov 2022
Release notes
Open source →Bug fixes
Allow more characters in attribute names, following HTML spec.
New features
The new
"selfClosing"dialect allows/>syntax to be used to create self-closing tags. - 1.0.127 Jul 2022
Release notes
Open source →Bug fixes
Continue parsing when an invalid entity reference appears in an attribute value.
- 1.0.06 Jun 2022
- 0.16.116 May 2022
Release notes
Open source →Bug fixes
Fix a bug where comment end tokens preceded by dashes were sometimes not recognized.
- 0.16.020 Apr 2022
Release notes
Open source →Breaking changes
Move to 0.16 serialized parser format.
New features
The parser now includes syntax highlighting information in its node types.
- 0.15.116 Feb 2022
Release notes
Open source →Bug fixes
Make sure the tree for unfinished self-closing tags shows them as self-closing.
- 0.15.011 Aug 2021
Release notes
Open source →Breaking changes
The module's name changed from
lezer-htmlto@lezer/html.Upgrade to the 0.15.0 lezer interfaces.