Skip to content

Commit f0c7042

Browse files
committed
update
1 parent 7dcd2d3 commit f0c7042

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hook-inline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { SandboxOptions } from "./sandpack";
55

66
const escapeHTMLComment = (content: string) => {
77
// It will be restored when parsing comment
8+
// to avoid break -->
89
return content.replaceAll("<!--", "\\u003c\\u0021\\u002d\\u002d").replaceAll("-->", "\\u002d\\u002d\\u003e");
910
};
1011
export const inlineFiles = (content: string, filePath: string) => {

0 commit comments

Comments
 (0)