Skip to content

Commit 6e651ee

Browse files
committed
Update dev-dependencies
1 parent aa41024 commit 6e651ee

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@types/node": "^20.0.0",
5151
"c8": "^8.0.0",
5252
"github-slugger": "^2.0.0",
53-
"hast-util-to-html": "^8.0.0",
53+
"hast-util-to-html": "^9.0.0",
5454
"mdast-util-to-hast": "^13.0.0",
5555
"micromark-extension-gfm": "^3.0.0",
5656
"prettier": "^3.0.0",

test/index.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,11 @@ test('markdown -> mdast', async function (t) {
4343
mdastExtensions: [gfmFromMarkdown()]
4444
})
4545

46-
const actualHtml = toHtml(
47-
// @ts-expect-error: remove when `to-html` is released.
48-
toHast(mdast, {allowDangerousHtml: true}),
49-
{
50-
allowDangerousHtml: true,
51-
entities: {useNamedReferences: true},
52-
closeSelfClosing: true
53-
}
54-
)
46+
const actualHtml = toHtml(toHast(mdast, {allowDangerousHtml: true}), {
47+
allowDangerousHtml: true,
48+
characterReferences: {useNamedReferences: true},
49+
closeSelfClosing: true
50+
})
5551

5652
/** @type {string} */
5753
let expectedMarkdown

0 commit comments

Comments
 (0)