open external links in new tab
This commit is contained in:
@@ -4,6 +4,7 @@ import alpinejs from '@astrojs/alpinejs';
|
||||
import mdx from '@astrojs/mdx';
|
||||
import { defineConfig } from 'astro/config';
|
||||
import pagefind from 'astro-pagefind';
|
||||
import rehypeExternalLinks from 'rehype-external-links';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
@@ -16,6 +17,9 @@ export default defineConfig({
|
||||
dark: 'github-dark',
|
||||
},
|
||||
},
|
||||
rehypePlugins: [
|
||||
[rehypeExternalLinks, { target: '_blank', rel: ['noopener', 'noreferrer'] }],
|
||||
],
|
||||
},
|
||||
integrations: [
|
||||
mdx(),
|
||||
|
||||
Reference in New Issue
Block a user