Skip to content

Commit aa41024

Browse files
committed
Update dev-dependencies
1 parent 5461a0a commit aa41024

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@
5151
"c8": "^8.0.0",
5252
"github-slugger": "^2.0.0",
5353
"hast-util-to-html": "^8.0.0",
54-
"mdast-util-to-hast": "^12.0.0",
54+
"mdast-util-to-hast": "^13.0.0",
5555
"micromark-extension-gfm": "^3.0.0",
56-
"prettier": "^2.0.0",
56+
"prettier": "^3.0.0",
5757
"remark-cli": "^11.0.0",
5858
"remark-preset-wooorm": "^9.0.0",
5959
"type-coverage": "^2.0.0",
6060
"typescript": "^5.0.0",
6161
"undici": "^5.0.0",
62-
"xo": "^0.54.0"
62+
"xo": "^0.55.0"
6363
},
6464
"scripts": {
6565
"crawl": "node --conditions development script/crawl-tests.js",
6666
"prepack": "npm run build && npm run format",
6767
"build": "tsc --build --clean && tsc --build && type-coverage",
68-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
68+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6969
"test-api-prod": "node --conditions production test/index.js",
7070
"test-api-dev": "node --conditions development test/index.js",
7171
"test-api": "npm run test-api-dev && npm run test-api-prod",

test/index.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ test('markdown -> mdast', async function (t) {
4343
mdastExtensions: [gfmFromMarkdown()]
4444
})
4545

46-
const hast = toHast(mdast, {allowDangerousHtml: true})
47-
assert(hast, 'expected node')
48-
const actualHtml = toHtml(hast, {
49-
allowDangerousHtml: true,
50-
entities: {useNamedReferences: true},
51-
closeSelfClosing: true
52-
})
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+
)
5355

5456
/** @type {string} */
5557
let expectedMarkdown

0 commit comments

Comments
 (0)