Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol
diffdown.com
1## 6.4.11 (2025-10-02)
2
3### Bug fixes
4
5Adjust autocompletion to work with @lezer/html's improved handling of `<` characters without tag name after them.
6
7## 6.4.10 (2025-09-11)
8
9### Bug fixes
10
11Don't include period characters in the language's word characters.
12
13## 6.4.9 (2024-04-12)
14
15### Bug fixes
16
17Fix a bug in `autoCloseTags` that made tags not close when typing > after an attribute.
18
19## 6.4.8 (2024-01-23)
20
21### Bug fixes
22
23Complete attribute names after whitespace in a tag even when completion isn't explicitly triggered.
24
25## 6.4.7 (2023-11-27)
26
27### Bug fixes
28
29Parse `script` tags with `application/json` type as JSON syntax.
30
31## 6.4.6 (2023-08-28)
32
33### Bug fixes
34
35`autoCloseTags` now generates two separate transactions, so that the completion can be undone separately.
36
37Add highlighting for the content of `<script>` tags with a type of `importmap` or `speculationrules`.
38
39## 6.4.5 (2023-06-23)
40
41### Bug fixes
42
43Fix 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.
44
45## 6.4.4 (2023-06-05)
46
47### Bug fixes
48
49Fix a bug where the completed tag names didn't take into account the parent node's declared children in the schema in some circumstances.
50
51## 6.4.3 (2023-03-27)
52
53### Bug fixes
54
55Fix a bug that could cause some nested language regions to be parsed multiple times.
56
57## 6.4.2 (2023-02-10)
58
59### Bug fixes
60
61Fix an issue where `autoCloseTags` would close self-closing tags when typed directly in front of a word.
62
63## 6.4.1 (2023-01-12)
64
65### Bug fixes
66
67Use only the tag name for matching of opening and closing tags.
68
69## 6.4.0 (2022-11-30)
70
71### Bug fixes
72
73Directly depend on @lang/css 1.1.0, since we're using a new top rule name introduced in that.
74
75### New features
76
77Add a `globalAttrs` property to (completion) `TagSpec` objects that controls whether global attributes are completed in that tag.
78
79## 6.3.1 (2022-11-29)
80
81### Bug fixes
82
83Remove incorrect pure annotation that broke the code after tree-shaking.
84
85## 6.3.0 (2022-11-28)
86
87### Bug fixes
88
89Parse type=text/babel script tags as JSX.
90
91### New features
92
93The new `nestedLanguages` option can be used to configure how the content of script, style, and textarea tags is parsed.
94
95The 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.
96
97## 6.2.0 (2022-11-16)
98
99### New features
100
101Add a `selfClosingTags` option to `html` that enables `/>` syntax.
102
103## 6.1.4 (2022-11-15)
104
105### Bug fixes
106
107Parse the content of text/javascript or lang=ts script tags as TypeScript, use JS for text/jsx, and TSX for text/typescript-jsx.
108
109## 6.1.3 (2022-10-24)
110
111### Bug fixes
112
113Remove deprecated HTML tags from the completions.
114
115## 6.1.2 (2022-09-27)
116
117### Bug fixes
118
119Make tag auto-closing consume `>` characters after the cursor.
120
121## 6.1.1 (2022-09-05)
122
123### Bug fixes
124
125Properly list the dependency on @codemirror/view in package.json.
126
127## 6.1.0 (2022-06-22)
128
129### New features
130
131It is now possible to pass in options to extend the set of tags and attributes provided by autocompletion.
132
133## 6.0.0 (2022-06-08)
134
135### Breaking changes
136
137Update dependencies to 6.0.0
138
139## 0.20.0 (2022-04-20)
140
141### New features
142
143Autocompletion now suggests the `<template>` and `<slot>` elements.
144
145## 0.19.4 (2021-11-30)
146
147### Bug fixes
148
149Fix an issue where autoclosing a tag directly in front of alphanumeric text would include nonsense text in the completed tag name.
150
151## 0.19.3 (2021-09-23)
152
153### New features
154
155The package now exports a completion source function, rather than a prebuilt completion extension.
156
157Use more specific highlighting tags for attribute names and values.
158
159## 0.19.2 (2021-09-21)
160
161### New features
162
163The new `autoCloseTags` extension (included by default in `html()`) finishes closing tags when you type a `>` or `/` character.
164
165## 0.19.1 (2021-08-11)
166
167### Bug fixes
168
169Fix incorrect versions for @lezer dependencies.
170
171## 0.19.0 (2021-08-11)
172
173### Bug fixes
174
175Improve autocompletion in/after unclosed opening tags.
176
177### New features
178
179`html()` now takes a `matchClosingTags` option to turn off closing tag matching.
180
181## 0.18.1 (2021-05-05)
182
183### Bug fixes
184
185Fix an issue where the completer would sometimes try to complete an opening tag to its own close tag.
186
187Fix a bug that would sometimes produce the wrong indentation in HTML elements.
188
189Fix a bug that broke tag-specific attribute completion in tags like `<input>` or `<script>`.
190
191Move a new version of lezer-html which solves some issues with autocompletion.
192
193## 0.18.0 (2021-03-03)
194
195### Bug fixes
196
197Improves indentation at end of implicitly closed elements.
198
199## 0.17.1 (2021-01-06)
200
201### New features
202
203The package now also exports a CommonJS module.
204
205## 0.17.0 (2020-12-29)
206
207### Breaking changes
208
209First numbered release.
210