File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 64
64
* Not used in the SVG space.
65
65
*
66
66
* > 👉 **Note**: boolean attributes (such as `hidden`) are always collapsed.
67
- * @property {CharacterReferences | null | undefined } [entities]
68
- * Deprecated: please use `characterReferences` (optional).
69
- *
70
- * To do: remove.
71
67
* @property {boolean | null | undefined } [omitOptionalTags=false]
72
68
* Omit optional opening and closing tags (default: `false`).
73
69
*
135
131
* @typedef {'"' | "'" } Quote
136
132
* HTML quotes for attribute values.
137
133
*
138
- * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'entities' | ' space' | 'quote'> } Settings
134
+ * @typedef {Omit<Required<{[key in keyof Options]: Exclude<Options[key], null | undefined>}>, 'space' | 'quote'> } Settings
139
135
*
140
136
* @typedef {'html' | 'svg' } Space
141
137
* Namespace.
@@ -208,9 +204,7 @@ export function toHtml(tree, options) {
208
204
allowDangerousHtml : options_ . allowDangerousHtml || false ,
209
205
voids : options_ . voids || htmlVoidElements ,
210
206
characterReferences :
211
- options_ . characterReferences ||
212
- options_ . entities ||
213
- emptyCharacterReferences ,
207
+ options_ . characterReferences || emptyCharacterReferences ,
214
208
closeSelfClosing : options_ . closeSelfClosing || false ,
215
209
closeEmptyElements : options_ . closeEmptyElements || false
216
210
} ,
You can’t perform that action at this time.
0 commit comments