@codemirror/lang-html
Advanced tools
Changelog
6.4.9 (2024-04-12)
Fix a bug in autoCloseTags
that made tags not close when typing > after an attribute.
Changelog
6.4.8 (2024-01-23)
Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.
Changelog
6.4.7 (2023-11-27)
Parse script
tags with application/json
type as JSON syntax.
Changelog
6.4.6 (2023-08-28)
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
.
Changelog
6.4.5 (2023-06-23)
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.
Changelog
6.4.4 (2023-06-05)
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.
Changelog
6.4.3 (2023-03-27)
Fix a bug that could cause some nested language regions to be parsed multiple times.
Changelog
6.4.2 (2023-02-10)
Fix an issue where autoCloseTags
would close self-closing tags when typed directly in front of a word.
Changelog
6.4.1 (2023-01-12)
Use only the tag name for matching of opening and closing tags.
Changelog
6.4.0 (2022-11-30)
Directly depend on @lang/css 1.1.0, since we're using a new top rule name introduced in that.
Add a globalAttrs
property to (completion) TagSpec
objects that controls whether global attributes are completed in that tag.