File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 50
50
"@types/node" : " ^20.0.0" ,
51
51
"c8" : " ^8.0.0" ,
52
52
"github-slugger" : " ^2.0.0" ,
53
- "hast-util-to-html" : " ^8 .0.0" ,
53
+ "hast-util-to-html" : " ^9 .0.0" ,
54
54
"mdast-util-to-hast" : " ^13.0.0" ,
55
55
"micromark-extension-gfm" : " ^3.0.0" ,
56
56
"prettier" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -43,15 +43,11 @@ test('markdown -> mdast', async function (t) {
43
43
mdastExtensions : [ gfmFromMarkdown ( ) ]
44
44
} )
45
45
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
+ } )
55
51
56
52
/** @type {string } */
57
53
let expectedMarkdown
You can’t perform that action at this time.
0 commit comments