Update astro
This commit is contained in:
+11
-5
@@ -1,4 +1,5 @@
|
||||
import { defineConfig, fontProviders } from 'astro/config';
|
||||
import { unified } from '@astrojs/markdown-remark';
|
||||
import icon from 'astro-icon';
|
||||
import mdx from '@astrojs/mdx';
|
||||
//import { remarkModifiedTime } from './src/remark-modified-time.mjs';
|
||||
@@ -17,17 +18,22 @@ export default defineConfig({
|
||||
}],
|
||||
integrations: [icon(), mdx()],
|
||||
markdown: {
|
||||
processor: unified({
|
||||
remarkPlugins: [
|
||||
// remarkModifiedTime,
|
||||
remarkMath, [
|
||||
remarkKroki, {
|
||||
remarkMath,
|
||||
[remarkKroki, {
|
||||
alias: ["mermaid", "tikz"],
|
||||
server: process.env.KROKI_SERVER || "https://kroki.io",
|
||||
target: "mdx3",
|
||||
output: "inline-svg"
|
||||
}
|
||||
]],
|
||||
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
||||
}]
|
||||
],
|
||||
rehypePlugins: [
|
||||
rehypeMathjax,
|
||||
[rehypeCallouts, { theme: "obsidian" }]
|
||||
],
|
||||
}),
|
||||
shikiConfig: {
|
||||
theme: "one-dark-pro",
|
||||
},
|
||||
|
||||
Generated
+2567
-818
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -12,10 +12,11 @@
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^5.0.2",
|
||||
"@astrojs/markdown-remark": "^7.2.4",
|
||||
"@astrojs/mdx": "^7.0.8",
|
||||
"@iconify-json/lucide": "^1.2.98",
|
||||
"@iconify-json/simple-icons": "^1.2.74",
|
||||
"astro": "^6.0.8",
|
||||
"astro": "^7.2.9",
|
||||
"astro-icon": "^1.1.5",
|
||||
"rehype-callouts": "^2.1.2",
|
||||
"rehype-mathjax": "^7.1.0",
|
||||
|
||||
Reference in New Issue
Block a user