Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Static Template): Ensure valid HTML formatting for static template #894

Merged
merged 7 commits into from
Apr 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Be gone, stray whitespace!
  • Loading branch information
joshwcomeau committed Apr 7, 2023
commit 30cf98d508c33a12a84ee203a9993ac995d83f4c
1 change: 0 additions & 1 deletion sandpack-client/src/clients/static/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export class SandpackStatic extends SandpackClient {
content = readBuffer(content);

// Inject script

content =
insertHtmlAfterRegex(/<head[^<>]*>/g, content, "\n" + contentToInsert) ??
contentToInsert + "\n" + content;
Expand Down