Skip to content

Commit 0e16c1d

Browse files
committed
update astro config to move deprecated fields
1 parent ac21e5a commit 0e16c1d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

astro.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import mdx from "@astrojs/mdx";
44
import { modifiedTime } from "./src/plugins/modifiedTime.mjs";
55
import rehypeMdxCodeProps from "rehype-mdx-code-props";
66
import mermaid from "astro-mermaid";
7+
import { unified } from "@astrojs/markdown-remark";
78

89
// https://astro.build/config
910
export default defineConfig({
@@ -30,8 +31,10 @@ export default defineConfig({
3031
},
3132
],
3233
markdown: {
33-
rehypePlugins: [rehypeMdxCodeProps],
34-
remarkPlugins: [modifiedTime],
34+
processor: unified({
35+
rehypePlugins: [rehypeMdxCodeProps],
36+
remarkPlugins: [modifiedTime],
37+
}),
3538
},
3639
trailingSlash: "always",
3740
});

0 commit comments

Comments
 (0)