1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-07-31 22:40:19 +02:00

Handle external links in markdown

This commit is contained in:
Kamran Ahmed
2023-01-01 18:59:38 +04:00
parent bc13c3bdad
commit 50b0309590
3 changed files with 25 additions and 0 deletions

View File

@@ -2,9 +2,15 @@ import { defineConfig } from 'astro/config';
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
import rehypeExternalLinks from 'rehype-external-links';
// https://astro.build/config
export default defineConfig({
markdown: {
rehypePlugins: [
[rehypeExternalLinks, { target: '_blank'}]
]
},
integrations: [tailwind({
config: {
applyBaseStyles: false