File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments