diff --git a/components/StyledMarkdownBlock.tsx b/components/StyledMarkdownBlock.tsx
index eacebbf08..0d6f9a010 100644
--- a/components/StyledMarkdownBlock.tsx
+++ b/components/StyledMarkdownBlock.tsx
@@ -80,29 +80,26 @@ export const StyledMarkdownBlock = ({ markdown }: StyledMarkdownBlockProps) => {
const combinedClassName =
`${baseClassName} ${additionalClass}`.trim();
- const link =
- href.charAt(0) === '/' ? (
-
- {children}
-
- ) : (
-
- {children}
-
- );
+ const isInternal = href.startsWith('/') || href.startsWith('#');
+ const link = isInternal ? (
+
+ {children}
+
+ ) : (
+
+ {children}
+
+ );
return <>{link}>;
},