File tree Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Expand file tree Collapse file tree 2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 11// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22
33exports [` remarkLink > should transform image link 1` ] = `
4- VFile {
5- " cwd" : " /home/mike/Sources/openpatch/hyperbook/packages/markdown" ,
6- " data" : {},
7- " history" : [],
8- " messages" : [],
9- " value" : "
4+ "
105<p >
116 <img src = " /public/test.jpg" alt = " A description" >
127</p >
13- " ,
14- }
8+ "
159`;
1610
1711exports[`remarkLink > should transform link 1`] = `
18- VFile {
19- " cwd" : " /home/mike/Sources/openpatch/hyperbook/packages/markdown" ,
20- " data" : {},
21- " history" : [],
22- " messages" : [],
23- " value" : "
12+ "
2413<p ><a href = " /public/test.jpg" >A description</a ></p >
25- " ,
26- }
14+ "
2715`;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const toHtml = (md: string, ctx: HyperbookContext) => {
1818 allowDangerousCharacters : true ,
1919 allowDangerousHtml : true ,
2020 } )
21- . processSync ( md ) ;
21+ . processSync ( md ) . value ;
2222} ;
2323
2424describe ( "remarkLink" , ( ) => {
You can’t perform that action at this time.
0 commit comments