Skip to content

Commit 9fae4ca

Browse files
authored
Fix docs toc (supabase#30845)
1 parent 1b46882 commit 9fae4ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/docs/components/GuidesTableOfContents.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ const formatTOCHeader = (content: string) => {
3232
begin = false
3333
res.push(`</code>`)
3434
}
35+
} else if (x === '<') {
36+
res.push('&lt')
37+
} else if (x === '>') {
38+
res.push('&gt')
3539
} else {
3640
res.push(x)
3741
}

0 commit comments

Comments
 (0)