Skip to content

Commit 51b05ee

Browse files
committed
Update dependencies and make links open in new frame
1 parent 77cfab1 commit 51b05ee

File tree

17 files changed

+1292
-1618
lines changed

17 files changed

+1292
-1618
lines changed

astro.config.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { defineConfig } from 'astro/config';
22
import remarkKramdownClasses from './src/plugins/remark-kramdown-classes.mjs';
3+
import { remarkHeadingId } from "remark-custom-heading-id";
4+
import rehypeSlug from 'rehype-slug';
5+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
6+
import rehypeExternalLinks from "rehype-external-links";
37

48
export default defineConfig({
59
site: 'https://keepandroidopen.org',
@@ -11,6 +15,14 @@ export default defineConfig({
1115
},
1216
},
1317
markdown: {
14-
remarkPlugins: [remarkKramdownClasses],
18+
remarkPlugins: [remarkHeadingId, remarkKramdownClasses],
19+
rehypePlugins: [[rehypeExternalLinks, {
20+
target: "_blank",
21+
content: {
22+
type: "text",
23+
value: " ↗"
24+
}
25+
}]
26+
],
1527
},
1628
});

0 commit comments

Comments
 (0)