Fixed bug where footnotes wouldn't work
This commit is contained in:
parent
f2c572e576
commit
7446ad3f42
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue