From d12ad2fc5fd23a93a365313751b447b154c64133 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 30 Nov 2023 03:21:54 +0100 Subject: [PATCH] docs: fix encoded text in TOC (#2098) --- www/islands/TableOfContents.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/www/islands/TableOfContents.tsx b/www/islands/TableOfContents.tsx index 3bdd03db..8cb74b85 100644 --- a/www/islands/TableOfContents.tsx +++ b/www/islands/TableOfContents.tsx @@ -122,9 +122,8 @@ export function TableOfContents({ headings }: TableOfContentsProps) { - {heading.html} - + dangerouslySetInnerHTML={{ __html: heading.html }} + /> ); })} @@ -161,9 +160,8 @@ export function TableOfContents({ headings }: TableOfContentsProps) { heading.id, ); }} - > - {heading.html} - + dangerouslySetInnerHTML={{ __html: heading.html }} + /> ); })}