@codemirror/lang-html
Advanced tools
Changelog
6.3.1 (2022-11-29)
Remove incorrect pure annotation that broke the code after tree-shaking.
Changelog
6.3.0 (2022-11-28)
Parse type=text/babel script tags as JSX.
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.
Changelog
6.2.0 (2022-11-16)
Add a selfClosingTags
option to html
that enables />
syntax.
Changelog
6.1.4 (2022-11-15)
Parse the content of text/javascript or lang=ts script tags as TypeScript, use JS for text/jsx, and TSX for text/typescript-jsx.
Changelog
6.1.2 (2022-09-27)
Make tag auto-closing consume >
characters after the cursor.
Changelog
6.1.1 (2022-09-05)
Properly list the dependency on @codemirror/view in package.json.
Changelog
6.1.0 (2022-06-22)
It is now possible to pass in options to extend the set of tags and attributes provided by autocompletion.