Skip to content

Commit d2c90f6

Browse files
authored
fix: restore surrounding newlines with lang="ts" (#1011)
1 parent 7416468 commit d2c90f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/site-kit/src/lib/markdown/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ async function generate_ts_from_js(
369369

370370
if (!ts) return;
371371

372-
return code.replace(outer, `<script lang="ts">${ts}</script>`);
372+
return code.replace(outer, `<script lang="ts">\n${ts}\n</script>`);
373373
}
374374

375375
return await convert_to_ts(code);

0 commit comments

Comments
 (0)