Upgrade astro
This commit is contained in:
+6
-3
@@ -1,4 +1,5 @@
|
|||||||
import { defineConfig, fontProviders } from "astro/config";
|
import { defineConfig, fontProviders } from "astro/config";
|
||||||
|
import { unified } from '@astrojs/markdown-remark';
|
||||||
import icon from "astro-icon";
|
import icon from "astro-icon";
|
||||||
import mdx from "@astrojs/mdx";
|
import mdx from "@astrojs/mdx";
|
||||||
import remarkMath from "remark-math";
|
import remarkMath from "remark-math";
|
||||||
@@ -21,15 +22,17 @@ export default defineConfig({
|
|||||||
flowchart: {curve:"linear"},
|
flowchart: {curve:"linear"},
|
||||||
startOnLoad: false,
|
startOnLoad: false,
|
||||||
logLevel: "error",
|
logLevel: "error",
|
||||||
securityLevel: "strict"
|
securityLevel: "strict",
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
icon(),
|
icon(),
|
||||||
mdx()
|
mdx()
|
||||||
],
|
],
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [remarkMath],
|
processor: unified({
|
||||||
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
remarkPlugins: [remarkMath],
|
||||||
|
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
||||||
|
}),
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
theme: "one-dark-pro",
|
theme: "one-dark-pro",
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+1771
-1456
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -12,11 +12,12 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^5.0.2",
|
"@astrojs/markdown-remark": "^7.3.0",
|
||||||
|
"@astrojs/mdx": "^8.0.0",
|
||||||
"@iconify-json/lucide": "^1.2.98",
|
"@iconify-json/lucide": "^1.2.98",
|
||||||
"@iconify-json/simple-icons": "^1.2.74",
|
"@iconify-json/simple-icons": "^1.2.74",
|
||||||
"@mermaid-js/layout-elk": "^0.2.3",
|
"@mermaid-js/layout-elk": "^0.2.3",
|
||||||
"astro": "^6.0.8",
|
"astro": "^7.3.1",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"astro-mermaid": "^2.1.0",
|
"astro-mermaid": "^2.1.0",
|
||||||
"mermaid": "^11.17.2",
|
"mermaid": "^11.17.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user