Skip to content

Commit ca5ae86

Browse files
committed
Fix MDXComponents provider
1 parent 6d69896 commit ca5ae86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Link/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ export default function Link({
88
// eslint-disable-next-line jsx-a11y/anchor-has-content
99
if (!href) return <a {...props} />;
1010
const isInternal =
11-
new URL(href, "https://joshcena.com").origin === "joshcena.com";
12-
11+
new URL(href, "https://joshcena.com").origin === "https://joshcena.com";
1312
const isAnchorLink = href.startsWith("#");
1413

15-
return isAnchorLink || isInternal ? (
14+
return isAnchorLink || !isInternal ? (
1615
// eslint-disable-next-line jsx-a11y/anchor-has-content
1716
<a
1817
href={href}

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default defineConfig({
1919
transformMarkdown,
2020
[remarkMDXFrontmatter, { name: "frontMatter" }],
2121
],
22+
providerImportSource: "@mdx-js/react",
2223
}),
2324
},
2425
react(),

0 commit comments

Comments
 (0)