aboutsummaryrefslogtreecommitdiff
path: root/astro.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs
index 19df8a3..b4fe6c6 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -4,6 +4,7 @@ import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import icon from "astro-icon";
+import rehypeExternalLinks from "rehype-external-links";
export default defineConfig({
compressHTML: true,
@@ -21,4 +22,17 @@ export default defineConfig({
inlineStylesheets: "never",
},
scopedStyleStrategy: "where",
+ markdown: {
+ rehypePlugins: [
+ [
+ rehypeExternalLinks,
+ {
+ "rel": ["nofollow", "noopener"],
+ "properties": {
+ "className": "external",
+ }
+ }
+ ]
+ ]
+ }
});