Update astro
This commit is contained in:
+11
-5
@@ -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 { remarkModifiedTime } from './src/remark-modified-time.mjs';
|
//import { remarkModifiedTime } from './src/remark-modified-time.mjs';
|
||||||
@@ -17,17 +18,22 @@ export default defineConfig({
|
|||||||
}],
|
}],
|
||||||
integrations: [icon(), mdx()],
|
integrations: [icon(), mdx()],
|
||||||
markdown: {
|
markdown: {
|
||||||
|
processor: unified({
|
||||||
remarkPlugins: [
|
remarkPlugins: [
|
||||||
// remarkModifiedTime,
|
// remarkModifiedTime,
|
||||||
remarkMath, [
|
remarkMath,
|
||||||
remarkKroki, {
|
[remarkKroki, {
|
||||||
alias: ["mermaid", "tikz"],
|
alias: ["mermaid", "tikz"],
|
||||||
server: process.env.KROKI_SERVER || "https://kroki.io",
|
server: process.env.KROKI_SERVER || "https://kroki.io",
|
||||||
target: "mdx3",
|
target: "mdx3",
|
||||||
output: "inline-svg"
|
output: "inline-svg"
|
||||||
}
|
}]
|
||||||
]],
|
],
|
||||||
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
rehypePlugins: [
|
||||||
|
rehypeMathjax,
|
||||||
|
[rehypeCallouts, { theme: "obsidian" }]
|
||||||
|
],
|
||||||
|
}),
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
theme: "one-dark-pro",
|
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"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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/lucide": "^1.2.98",
|
||||||
"@iconify-json/simple-icons": "^1.2.74",
|
"@iconify-json/simple-icons": "^1.2.74",
|
||||||
"astro": "^6.0.8",
|
"astro": "^7.2.9",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"rehype-callouts": "^2.1.2",
|
"rehype-callouts": "^2.1.2",
|
||||||
"rehype-mathjax": "^7.1.0",
|
"rehype-mathjax": "^7.1.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user