PackageTrack

npm

@lezer/html

1.3.13lezer-parser/html

lezer-based HTML grammar

Release timeline

23 releases since 2021
20212026

One column per quarter.

Releases

  1. 1.3.1322 Dec 2025
    Release notes2 sources agree

    Bug fixes

    Set the bracketed flag for nested parses inside quotes or tags.

    Open source →
  2. 1.3.1226 Sept 2025
    Release notes

    Bug fixes

    Emit tokens for < characters without tag name, so that autocompletion can work with them.

    Open source →
    Additional notes

    Bug fixes

    Emit tokens for < characters without tag name, so that autocompletion can work with them.

    Open source →
  3. 1.3.1125 Sept 2025
    Release notes

    Bug fixes

    Don't parse < followed by whitespace as the start of a tag.

    Open source →
    Additional notes

    Bug fixes

    Don't parse < followed by whitespace as the start of a tag.

    Open source →
  4. 1.3.1029 May 2024
    Release notes2 sources agree

    Bug fixes

    Fix an issue that broke attribute reading when defining a nested language on a tag that isn't a style, textearea, or script tag.

    Open source →
  5. 1.3.921 Feb 2024
    Release notes

    Bug fixes

    When using the "selfClosing" dialect, fix parse errors for <br/> (tags that implicitly self-close) and <script/> (special tags).

    Open source →
    Additional notes

    Bug fixes

    When using the "selfClosing" dialect, fix parse errors for <br/> (tags that implicitly self-close) and <script/> (special tags).

    Open source →
  6. 1.3.828 Dec 2023
    Release notes2 sources agree

    Bug fixes

    Add bidiIsolate node props for tags, comments, and attributes.

    Mark tags, attributes, and comments as isolating for bidirectional text.

    Open source →
  7. 1.3.723 Nov 2023
    Release notes2 sources agree

    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 configureNesting could emit empty overlay ranges for empty elements.

    Open source →
  8. 1.3.612 Jul 2023
    Release notes2 sources agree

    Bug fixes

    Improve parsing of multiple unfinished opening tags by disallowing less-than characters in attribute names.

    Open source →
  9. 1.3.53 Jul 2023
    Release notes2 sources agree

    Bug fixes

    Make the package work with new TS resolution styles.

    Open source →
  10. 1.3.427 Mar 2023
    Release notes2 sources agree

    Bug fixes

    Fix a bug that caused mixed parsing of non-style/script elements to attach the nested parse tree to the incorrect node.

    Open source →
  11. 1.3.321 Feb 2023
    Release notes

    Bug fixes

    Make sure build output is strictly ES6 again.

    Open source →
  12. 1.3.216 Feb 2023
    Release notes

    Bug fixes

    Fix a crash caused by nexted parsing of attributes returning invalid ranges for attributes missing their closing quote.

    Open source →
  13. 1.3.111 Feb 2023
    Release notes

    Bug fixes

    Always allow self-closing tags in <svg> and <math> tags.

    Open source →
  14. 1.3.016 Dec 2022
    Release notes

    New features

    configureNesting now supports targeting tags other than style, script, and textarea.

    Open source →
  15. 1.2.025 Nov 2022
    Release notes

    New features

    configureNesting now takes a second argument that can be used to specify that the value of some attributes should be parsed with an external parser.

    Open source →
  16. 1.1.118 Nov 2022
    Release notes

    Bug fixes

    Align allowed characters in unquoted attribute values with the spec. Replace another unicode escape with a character

    Open source →
  17. 1.1.016 Nov 2022
    Release notes

    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.

    Open source →
  18. 1.0.127 Jul 2022
    Release notes

    Bug fixes

    Continue parsing when an invalid entity reference appears in an attribute value.

    Open source →
  19. 1.0.06 Jun 2022
    Release notes

    New features

    First stable version.

    Open source →
  20. 0.16.116 May 2022
    Release notes

    Bug fixes

    Fix a bug where comment end tokens preceded by dashes were sometimes not recognized.

    Open source →
  21. 0.16.020 Apr 2022
    Release notes

    Breaking changes

    Move to 0.16 serialized parser format.

    New features

    The parser now includes syntax highlighting information in its node types.

    Open source →
  22. 0.15.116 Feb 2022
    Release notes

    Bug fixes

    Make sure the tree for unfinished self-closing tags shows them as self-closing.

    Open source →
  23. 0.15.011 Aug 2021
    Release notes

    Breaking changes

    The module's name changed from lezer-html to @lezer/html.

    Upgrade to the 0.15.0 lezer interfaces.

    Open source →