HTML language support for the CodeMirror code editor
Last release 24 days ago
04 Aug 2026
Ships unpredictably
gaps range from 3 weeks to 1.4 years
Nearly every release is documented
notes for 32 of 32 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
32 releases · first in 2020
Release timeline
32 releases since 2020One column per quarter.
Releases
- 6.4.124 Aug 2026
Release notes2 sources agree
Open source →Bug fixes
Don't prevent auto-closing of tags when there's a matching close tag that belongs to a parent node present.
- 6.4.112 Oct 2025
Release notes2 sources agree
Open source →Bug fixes
Adjust autocompletion to work with @lezer/html's improved handling of
<characters without tag name after them. - 6.4.1011 Sept 2025
Release notes2 sources agree
Open source →Bug fixes
Don't include period characters in the language's word characters.
- 6.4.912 Apr 2024
Release notes2 sources agree
Open source →Bug fixes
Fix a bug in
autoCloseTagsthat made tags not close when typing > after an attribute. - 6.4.823 Jan 2024
Release notes2 sources agree
Open source →Bug fixes
Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.
- 6.4.727 Nov 2023
Release notes2 sources agree
Open source →Bug fixes
Parse
scripttags withapplication/jsontype as JSON syntax. - 6.4.628 Aug 2023
Release notes2 sources agree
Open source →Bug fixes
autoCloseTagsnow generates two separate transactions, so that the completion can be undone separately.Add highlighting for the content of
<script>tags with a type ofimportmaporspeculationrules. - 6.4.523 Jun 2023
Release notes2 sources agree
Open source →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.
- 6.4.45 Jun 2023
Release notes2 sources agree
Open source →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.
- 6.4.327 Mar 2023
Release notes2 sources agree
Open source →Bug fixes
Fix a bug that could cause some nested language regions to be parsed multiple times.
- 6.4.210 Feb 2023
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where
autoCloseTagswould close self-closing tags when typed directly in front of a word. - 6.4.112 Jan 2023
Release notes2 sources agree
Open source →Bug fixes
Use only the tag name for matching of opening and closing tags.
- 6.4.030 Nov 2022
Release notes2 sources agree
Open source →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
globalAttrsproperty to (completion)TagSpecobjects that controls whether global attributes are completed in that tag. - 6.3.129 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Remove incorrect pure annotation that broke the code after tree-shaking.
- 6.3.028 Nov 2022
Release notes2 sources agree
Open source →Bug fixes
Parse type=text/babel script tags as JSX.
New features
The new
nestedLanguagesoption 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
nestedAttributesoption can be used to configure the parsing of other attribute values. - 6.2.016 Nov 2022
Release notes2 sources agree
Open source →New features
Add a
selfClosingTagsoption tohtmlthat enables/>syntax. - 6.1.415 Nov 2022
Release notes2 sources agree
Open source →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.
- 6.1.324 Oct 2022
Release notes2 sources agree
Open source →Bug fixes
Remove deprecated HTML tags from the completions.
- 6.1.227 Sept 2022
Release notes2 sources agree
Open source →Bug fixes
Make tag auto-closing consume
>characters after the cursor. - 6.1.15 Sept 2022
Release notes2 sources agree
Open source →Bug fixes
Properly list the dependency on @codemirror/view in package.json.
- 6.1.022 Jun 2022
Release notes2 sources agree
Open source →New features
It is now possible to pass in options to extend the set of tags and attributes provided by autocompletion.
- 6.0.08 Jun 2022
- 0.20.020 Apr 2022
Release notes2 sources agree
Open source →New features
Autocompletion now suggests the
<template>and<slot>elements. - 0.19.430 Nov 2021
Release notes2 sources agree
Open source →Bug fixes
Fix an issue where autoclosing a tag directly in front of alphanumeric text would include nonsense text in the completed tag name.
- 0.19.323 Sept 2021
Release notes2 sources agree
Open source →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.
- 0.19.221 Sept 2021
Release notes2 sources agree
Open source →New features
The new
autoCloseTagsextension (included by default inhtml()) finishes closing tags when you type a>or/character. - 0.19.111 Aug 2021
- 0.19.011 Aug 2021
Release notes2 sources agree
Open source →Bug fixes
Improve autocompletion in/after unclosed opening tags.
New features
html()now takes amatchClosingTagsoption to turn off closing tag matching. - 0.18.15 May 2021
Release notes2 sources agree
Open source →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.
- 0.18.03 Mar 2021
Release notes2 sources agree
Open source →Bug fixes
Improves indentation at end of implicitly closed elements.
- 0.17.16 Jan 2021
Release notes2 sources agree
Open source →New features
The package now also exports a CommonJS module.
- 0.17.029 Dec 2020