File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 51
51
"c8" : " ^8.0.0" ,
52
52
"github-slugger" : " ^2.0.0" ,
53
53
"hast-util-to-html" : " ^8.0.0" ,
54
- "mdast-util-to-hast" : " ^12 .0.0" ,
54
+ "mdast-util-to-hast" : " ^13 .0.0" ,
55
55
"micromark-extension-gfm" : " ^3.0.0" ,
56
- "prettier" : " ^2 .0.0" ,
56
+ "prettier" : " ^3 .0.0" ,
57
57
"remark-cli" : " ^11.0.0" ,
58
58
"remark-preset-wooorm" : " ^9.0.0" ,
59
59
"type-coverage" : " ^2.0.0" ,
60
60
"typescript" : " ^5.0.0" ,
61
61
"undici" : " ^5.0.0" ,
62
- "xo" : " ^0.54 .0"
62
+ "xo" : " ^0.55 .0"
63
63
},
64
64
"scripts" : {
65
65
"crawl" : " node --conditions development script/crawl-tests.js" ,
66
66
"prepack" : " npm run build && npm run format" ,
67
67
"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" ,
69
69
"test-api-prod" : " node --conditions production test/index.js" ,
70
70
"test-api-dev" : " node --conditions development test/index.js" ,
71
71
"test-api" : " npm run test-api-dev && npm run test-api-prod" ,
Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ test('markdown -> mdast', async function (t) {
43
43
mdastExtensions : [ gfmFromMarkdown ( ) ]
44
44
} )
45
45
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
+ )
53
55
54
56
/** @type {string } */
55
57
let expectedMarkdown
You can’t perform that action at this time.
0 commit comments