Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2023
1 parent aa41024 commit 6e651ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"github-slugger": "^2.0.0",
"hast-util-to-html": "^8.0.0",
"hast-util-to-html": "^9.0.0",
"mdast-util-to-hast": "^13.0.0",
"micromark-extension-gfm": "^3.0.0",
"prettier": "^3.0.0",
Expand Down
14 changes: 5 additions & 9 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,11 @@ test('markdown -> mdast', async function (t) {
mdastExtensions: [gfmFromMarkdown()]
})

const actualHtml = toHtml(
// @ts-expect-error: remove when `to-html` is released.
toHast(mdast, {allowDangerousHtml: true}),
{
allowDangerousHtml: true,
entities: {useNamedReferences: true},
closeSelfClosing: true
}
)
const actualHtml = toHtml(toHast(mdast, {allowDangerousHtml: true}), {
allowDangerousHtml: true,
characterReferences: {useNamedReferences: true},
closeSelfClosing: true
})

/** @type {string} */
let expectedMarkdown
Expand Down

0 comments on commit 6e651ee

Please sign in to comment.