update: code block style

This commit is contained in:
radishzzz 2025-03-20 05:31:26 +00:00
parent 1e1519c3c5
commit 9283287442
8 changed files with 49 additions and 78 deletions

View file

@ -7,7 +7,6 @@ import { defineConfig } from 'astro/config'
import rehypeExternalLinks from 'rehype-external-links'
import rehypeKatex from 'rehype-katex'
import remarkMath from 'remark-math'
import remarkSectionize from 'remark-sectionize'
import UnoCSS from 'unocss/astro'
import { themeConfig } from './src/config'
import { langMap } from './src/i18n/config'
@ -54,7 +53,6 @@ export default defineConfig({
markdown: {
remarkPlugins: [
remarkMath,
remarkSectionize,
remarkReadingTime,
],
rehypePlugins: [
@ -68,6 +66,13 @@ export default defineConfig({
},
],
],
// available themes: https://shiki.style/themes
shikiConfig: {
themes: {
light: 'one-light',
dark: 'one-dark-pro',
},
},
},
devToolbar: {
enabled: false,