Skip to content

Commit 7ff2466

Browse files
authored
Merge pull request #1440 from datum-cloud/feat/upgrade-astro-v7
chore(deps): upgrade Astro 6 → 7
2 parents 247da45 + 630a0e3 commit 7ff2466

3 files changed

Lines changed: 838 additions & 522 deletions

File tree

astro.config.mjs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { join } from 'path';
44
import tailwindcss from '@tailwindcss/vite';
55
import alpinejs from '@astrojs/alpinejs';
66
import mdx from '@astrojs/mdx';
7+
import { unified } from '@astrojs/markdown-remark';
78
import mermaid from 'astro-mermaid';
89

910
import { loadEnv } from 'vite';
@@ -85,15 +86,18 @@ export default defineConfig({
8586
adapter: node({
8687
mode: 'middleware',
8788
}),
89+
compressHTML: true,
8890
markdown: {
89-
gfm: true,
90-
smartypants: true,
91-
remarkPlugins: [remarkModifiedTime],
92-
// Astro runs Shiki before user `rehypePlugins` on MDX; that emits `astro-code` and prevents
93-
// expressive-code from taking over. Disable built-in highlighting so fenced blocks stay
94-
// `pre > code` until `rehype-expressive-code` runs (same stack as `renderMarkdownWithExpressiveCode`).
91+
processor: unified({
92+
gfm: true,
93+
smartypants: true,
94+
remarkPlugins: [remarkModifiedTime],
95+
// Astro runs Shiki before user `rehypePlugins` on MDX; that emits `astro-code` and prevents
96+
// expressive-code from taking over. Disable built-in highlighting so fenced blocks stay
97+
// `pre > code` until `rehype-expressive-code` runs (same stack as `renderMarkdownWithExpressiveCode`).
98+
rehypePlugins: [[rehypeExpressiveCode, expressiveCodeRehypeOptions]],
99+
}),
95100
syntaxHighlight: false,
96-
rehypePlugins: [[rehypeExpressiveCode, expressiveCodeRehypeOptions]],
97101
},
98102
image: {
99103
layout: 'constrained',

0 commit comments

Comments
 (0)