Skip to content

Commit 15b1618

Browse files
committed
Remove entities option, use characterReferences
1 parent 1470a23 commit 15b1618

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/index.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@
6464
* Not used in the SVG space.
6565
*
6666
* > 👉 **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.
7167
* @property {boolean | null | undefined} [omitOptionalTags=false]
7268
* Omit optional opening and closing tags (default: `false`).
7369
*
@@ -135,7 +131,7 @@
135131
* @typedef {'"' | "'"} Quote
136132
* HTML quotes for attribute values.
137133
*
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
139135
*
140136
* @typedef {'html' | 'svg'} Space
141137
* Namespace.
@@ -208,9 +204,7 @@ export function toHtml(tree, options) {
208204
allowDangerousHtml: options_.allowDangerousHtml || false,
209205
voids: options_.voids || htmlVoidElements,
210206
characterReferences:
211-
options_.characterReferences ||
212-
options_.entities ||
213-
emptyCharacterReferences,
207+
options_.characterReferences || emptyCharacterReferences,
214208
closeSelfClosing: options_.closeSelfClosing || false,
215209
closeEmptyElements: options_.closeEmptyElements || false
216210
},

0 commit comments

Comments
 (0)