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 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments