Skip to content
2 changes: 2 additions & 0 deletions .remarkrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import remarkPresetLintRecommended from 'remark-preset-lint-recommended';
import remarkNoInlineCodeFences from './src/plugins/remark-no-inline-code-fences.mjs';
import remarkNoHtmlLinks from './src/plugins/remark-no-html-links.mjs';
import remarkLintNoDeadUrls from 'remark-lint-no-dead-urls';
import remarkForceRootRelative from './src/plugins/remark-force-root-relative.mjs';

export default {
plugins: [
Expand All @@ -26,5 +27,6 @@ export default {
], // Add known flaky URL patterns here
},
],
remarkForceRootRelative,
],
};
2 changes: 2 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import remarkImageAttributes from './src/plugins/remark-image-attributes';
import { remarkMdxGlobalImports } from './src/plugins/remark-mdx-global-imports';
import remarkCodeRegion from './src/plugins/remark-code-region';
import { unified } from '@astrojs/markdown-remark';
import rehypeTargetBlank from './src/plugins/rehype-external-links';

export default defineConfig({
site: 'https://frcsoftware.org',
Expand All @@ -25,6 +26,7 @@ export default defineConfig({
remarkMdxGlobalImports,
remarkCodeRegion,
],
rehypePlugins: [rehypeTargetBlank],
}),
},

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@astrojs/check": "^0.9.9",
"@eslint/js": "^10.0.1",
"@types/estree": "^1.0.9",
"@types/hast": "^3.0.5",
"@types/mdast": "^4.0.4",
"@vvago/vale": "^3.16.0",
"astro-eslint-parser": "^1.4.0",
Expand Down
Loading