diff --git a/packages/site-kit/src/lib/markdown/renderer.ts b/packages/site-kit/src/lib/markdown/renderer.ts index d5355076bd..0b4b9f32cf 100644 --- a/packages/site-kit/src/lib/markdown/renderer.ts +++ b/packages/site-kit/src/lib/markdown/renderer.ts @@ -680,6 +680,13 @@ async function syntax_highlight({ if (check) { // munge the twoslash output so that it renders sensibly. the order of operations // here is important — we need to work backwards, to avoid corrupting the offsets + + // first, strip out unwanted error lines + html = html.replace( + /