Skip to content

Commit 68c359f

Browse files
committed
fix: add {%raw%} tag
1 parent c5fc77f commit 68c359f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hook-inline.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const inlineFiles = (content: string, filePath: string) => {
4040
...options,
4141
files: inlinedFiles
4242
};
43-
return `<!-- sandpack:${JSON.stringify(updatedOptions)} -->`;
43+
// avoid to nunjuck error
44+
return `{%raw%}<!-- sandpack:${JSON.stringify(updatedOptions)} -->{%endraw%}`;
4445
});
4546
};

0 commit comments

Comments
 (0)