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 <a
href={`#${heading.id}`} href={`#${heading.id}`}
class="block truncatetext-gray-600" class="block truncatetext-gray-600"
> dangerouslySetInnerHTML={{ __html: heading.html }}
{heading.html} />
</a>
</li> </li>
); );
})} })}
@@ -161,9 +160,8 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
heading.id, heading.id,
); );
}} }}
> dangerouslySetInnerHTML={{ __html: heading.html }}
{heading.html} />
</a>
</li> </li>
); );
})} })}