From 7446ad3f42e1e0b386ab628380678554f2b2c756 Mon Sep 17 00:00:00 2001 From: DrMint Date: Thu, 2 Jun 2022 19:41:51 +0200 Subject: [PATCH] Fixed bug where footnotes wouldn't work --- src/components/Markdown/Markdawn.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Markdown/Markdawn.tsx b/src/components/Markdown/Markdawn.tsx index 0c3fd85..873370b 100644 --- a/src/components/Markdown/Markdawn.tsx +++ b/src/components/Markdown/Markdawn.tsx @@ -41,7 +41,10 @@ export function Markdawn(props: Immutable): JSX.Element { href: string; children: React.ReactNode; }) => { - if (compProps.href.startsWith("/")) { + if ( + compProps.href.startsWith("/") || + compProps.href.startsWith("#") + ) { return ( router.push(compProps.href)}> {compProps.children}