Skip to content

Commit

Permalink
fix: add {%raw%} tag
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed May 28, 2022
1 parent c5fc77f commit 68c359f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hook-inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const inlineFiles = (content: string, filePath: string) => {
...options,
files: inlinedFiles
};
return `<!-- sandpack:${JSON.stringify(updatedOptions)} -->`;
// avoid to nunjuck error
return `{%raw%}<!-- sandpack:${JSON.stringify(updatedOptions)} -->{%endraw%}`;
});
};

0 comments on commit 68c359f

Please sign in to comment.