Skip to content

Commit 211cffa

Browse files
committed
Fix to remove name on doctype
This was removed from `hast`, because only the HTML5 doctype is valid.
1 parent ca3ce72 commit 211cffa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: lib/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,7 @@ function comment(state, unsafe) {
351351
function doctype(state, unsafe) {
352352
if (state.schema.allowDoctypes) {
353353
/** @type {Doctype} */
354-
const node = {
355-
type: 'doctype',
356-
// @ts-expect-error: To do: remove.
357-
name: 'html'
358-
}
354+
const node = {type: 'doctype'}
359355

360356
patch(node, unsafe)
361357

0 commit comments

Comments
 (0)