docs: fix encoded text in TOC (#2098)

This commit is contained in:
Marvin Hagemeister
2023-11-30 03:21:54 +01:00
committed by GitHub
parent de55d80dee
commit d12ad2fc5f
+4 -6
View File
@@ -122,9 +122,8 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
<a
href={`#${heading.id}`}
class="block truncatetext-gray-600"
>
{heading.html}
</a>
dangerouslySetInnerHTML={{ __html: heading.html }}
/>
</li>
);
})}
@@ -161,9 +160,8 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
heading.id,
);
}}
>
{heading.html}
</a>
dangerouslySetInnerHTML={{ __html: heading.html }}
/>
</li>
);
})}