File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,9 @@ export const transformHtml = (code: string) => {
158158 if ( ! code . includes ( '/assets/' ) ) return ;
159159 // 注意: 如果使用 htmlparser2+dom-serializer, 当 md 文件包含 `<<n` 将出现 Hydration mismatches 错误
160160 const doc = new Parser ( ) . parseFromString ( code , 'text/html' ) ;
161- const script = doc . createElement ( 'script' ) ;
162- script . textContent = `;(${ rewriteAppendChild } )(${ JSON . stringify ( mirrorBaseUrl ) } );` ;
163- doc . head . insertBefore ( script , doc . head . firstChild ) ;
161+ // const script = doc.createElement('script');
162+ // script.textContent = `;(${rewriteAppendChild})(${JSON.stringify(mirrorBaseUrl)});`;
163+ // doc.head.insertBefore(script, doc.head.firstChild);
164164 Object . entries ( {
165165 link : 'href' ,
166166 script : 'src' ,
You can’t perform that action at this time.
0 commit comments