Fixed bug where footnotes wouldn't work

This commit is contained in:
DrMint 2022-06-02 19:41:51 +02:00
parent f2c572e576
commit 7446ad3f42
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ export function Markdawn(props: Immutable<Props>): JSX.Element {
href: string;
children: React.ReactNode;
}) => {
if (compProps.href.startsWith("/")) {
if (
compProps.href.startsWith("/") ||
compProps.href.startsWith("#")
) {
return (
<a onClick={async () => router.push(compProps.href)}>
{compProps.children}