Update astro

This commit is contained in:
Daniel Kluge
2026-08-29 16:01:24 +02:00
parent d36a220a93
commit 3c237b8fa6
3 changed files with 2588 additions and 832 deletions
+11 -5
View File
@@ -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",
},
+2567 -818
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -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",