PackageTrack

npm

@codemirror/lang-html

6.4.12codemirror/lang-html

HTML language support for the CodeMirror code editor

Release timeline

32 releases since 2020
20202026

One column per quarter.

Releases

  1. 6.4.124 Aug 2026
    Release notes2 sources agree

    Bug fixes

    Don't prevent auto-closing of tags when there's a matching close tag that belongs to a parent node present.

    Open source →
  2. 6.4.112 Oct 2025
    Release notes2 sources agree

    Bug fixes

    Adjust autocompletion to work with @lezer/html's improved handling of < characters without tag name after them.

    Open source →
  3. 6.4.1011 Sept 2025
    Release notes2 sources agree

    Bug fixes

    Don't include period characters in the language's word characters.

    Open source →
  4. 6.4.912 Apr 2024
    Release notes2 sources agree

    Bug fixes

    Fix a bug in autoCloseTags that made tags not close when typing > after an attribute.

    Open source →
  5. 6.4.823 Jan 2024
    Release notes2 sources agree

    Bug fixes

    Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.

    Open source →
  6. 6.4.727 Nov 2023
    Release notes2 sources agree

    Bug fixes

    Parse script tags with application/json type as JSON syntax.

    Open source →
  7. 6.4.628 Aug 2023
    Release notes2 sources agree

    Bug fixes

    autoCloseTags now generates two separate transactions, so that the completion can be undone separately.

    Add highlighting for the content of <script> tags with a type of importmap or speculationrules.

    Open source →
  8. 6.4.523 Jun 2023
    Release notes2 sources agree

    Bug fixes

    Fix a bug where HTML autocompletion didn't work when the cursor was at the end of a bit of HTML code inside a mixed-language document.

    Open source →
  9. 6.4.45 Jun 2023
    Release notes2 sources agree

    Bug fixes

    Fix a bug where the completed tag names didn't take into account the parent node's declared children in the schema in some circumstances.

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

    Bug fixes

    Fix a bug that could cause some nested language regions to be parsed multiple times.

    Open source →
  11. 6.4.210 Feb 2023
    Release notes2 sources agree

    Bug fixes

    Fix an issue where autoCloseTags would close self-closing tags when typed directly in front of a word.

    Open source →
  12. 6.4.112 Jan 2023
    Release notes2 sources agree

    Bug fixes

    Use only the tag name for matching of opening and closing tags.

    Open source →
  13. 6.4.030 Nov 2022
    Release notes2 sources agree

    Bug fixes

    Directly depend on @lang/css 1.1.0, since we're using a new top rule name introduced in that.

    New features

    Add a globalAttrs property to (completion) TagSpec objects that controls whether global attributes are completed in that tag.

    Open source →
  14. 6.3.129 Nov 2022
    Release notes2 sources agree

    Bug fixes

    Remove incorrect pure annotation that broke the code after tree-shaking.

    Open source →
  15. 6.3.028 Nov 2022
    Release notes2 sources agree

    Bug fixes

    Parse type=text/babel script tags as JSX.

    New features

    The new nestedLanguages option can be used to configure how the content of script, style, and textarea tags is parsed.

    The content of style attributes will now be parsed as CSS, and the content of on[event] attributes as JavaScript. The new nestedAttributes option can be used to configure the parsing of other attribute values.

    Open source →
  16. 6.2.016 Nov 2022
    Release notes2 sources agree

    New features

    Add a selfClosingTags option to html that enables /> syntax.

    Open source →
  17. 6.1.415 Nov 2022
    Release notes2 sources agree

    Bug fixes

    Parse the content of text/javascript or lang=ts script tags as TypeScript, use JS for text/jsx, and TSX for text/typescript-jsx.

    Open source →
  18. 6.1.324 Oct 2022
    Release notes2 sources agree

    Bug fixes

    Remove deprecated HTML tags from the completions.

    Open source →
  19. 6.1.227 Sept 2022
    Release notes2 sources agree

    Bug fixes

    Make tag auto-closing consume > characters after the cursor.

    Open source →
  20. 6.1.15 Sept 2022
    Release notes2 sources agree

    Bug fixes

    Properly list the dependency on @codemirror/view in package.json.

    Open source →
  21. 6.1.022 Jun 2022
    Release notes2 sources agree

    New features

    It is now possible to pass in options to extend the set of tags and attributes provided by autocompletion.

    Open source →
  22. 6.0.08 Jun 2022
    Release notes2 sources agree

    Breaking changes

    Update dependencies to 6.0.0

    Open source →
  23. 0.20.020 Apr 2022
    Release notes2 sources agree

    New features

    Autocompletion now suggests the <template> and <slot> elements.

    Open source →
  24. 0.19.430 Nov 2021
    Release notes2 sources agree

    Bug fixes

    Fix an issue where autoclosing a tag directly in front of alphanumeric text would include nonsense text in the completed tag name.

    Open source →
  25. 0.19.323 Sept 2021
    Release notes2 sources agree

    New features

    The package now exports a completion source function, rather than a prebuilt completion extension.

    Use more specific highlighting tags for attribute names and values.

    Open source →
  26. 0.19.221 Sept 2021
    Release notes2 sources agree

    New features

    The new autoCloseTags extension (included by default in html()) finishes closing tags when you type a > or / character.

    Open source →
  27. 0.19.111 Aug 2021
    Release notes2 sources agree

    Bug fixes

    Fix incorrect versions for @lezer dependencies.

    Open source →
  28. 0.19.011 Aug 2021
    Release notes2 sources agree

    Bug fixes

    Improve autocompletion in/after unclosed opening tags.

    New features

    html() now takes a matchClosingTags option to turn off closing tag matching.

    Open source →
  29. 0.18.15 May 2021
    Release notes2 sources agree

    Bug fixes

    Fix an issue where the completer would sometimes try to complete an opening tag to its own close tag.

    Fix a bug that would sometimes produce the wrong indentation in HTML elements.

    Fix a bug that broke tag-specific attribute completion in tags like <input> or <script>.

    Move a new version of lezer-html which solves some issues with autocompletion.

    Open source →
  30. 0.18.03 Mar 2021
    Release notes2 sources agree

    Bug fixes

    Improves indentation at end of implicitly closed elements.

    Open source →
  31. 0.17.16 Jan 2021
    Release notes2 sources agree

    New features

    The package now also exports a CommonJS module.

    Open source →
  32. 0.17.029 Dec 2020
    Release notes2 sources agree

    Breaking changes

    First numbered release.

    Open source →