We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14376c3 commit e876132Copy full SHA for e876132
packages/site-kit/src/lib/markdown/renderer.ts
@@ -775,6 +775,14 @@ async function syntax_highlight({
775
776
html = html.replace(/ {27,}/g, () => redactions.shift()!);
777
778
+ /**
779
+ * @shikijs/twoslash (as of v3.2.1) returns `<` in code blocks
780
+ * inside of type tooltip-popups as `<`.
781
+ *
782
+ * See {@link https://github.com/sveltejs/svelte.dev/issues/1283}.
783
+ */
784
+ html = html.replaceAll('<', '<');
785
+
786
if (check) {
787
// munge the twoslash output so that it renders sensibly. the order of operations
788
// here is important — we need to work backwards, to avoid corrupting the offsets
0 commit comments