diff --git a/src/content/docs/zh-cn/guides/markdown-content.mdx b/src/content/docs/zh-cn/guides/markdown-content.mdx index 6a2cbb7fb0539..84746fb54d910 100644 --- a/src/content/docs/zh-cn/guides/markdown-content.mdx +++ b/src/content/docs/zh-cn/guides/markdown-content.mdx @@ -569,7 +569,7 @@ export default defineConfig({ ### 语法高亮 -Astro 内置支持 [Shiki](https://shiki.matsu.io/) (通过 [Shikiji](https://github.com/shikijs/shiki)) 和 [Prism](https://prismjs.com/)。这为: +Astro 内置支持 [Shiki](https://shiki.style/) 和 [Prism](https://prismjs.com/)。这为: - Markdown 或 MDX 文件中的所有代码块(\`\`\`)。 - [内置的 `` 组件](/zh-cn/reference/api-reference/#code-) 中的内容(由 Shiki 提供支持)。 @@ -588,17 +588,17 @@ export default defineConfig({ markdown: { shikiConfig: { // 选择 Shiki 内置的主题(或添加你自己的主题) - // https://github.com/shikijs/shiki/blob/main/docs/themes.md + // https://shiki.style/themes theme: 'dracula', // 另外,也提供了多种主题 - // https://shiki.style/guide/dual-themes#light-dark-dual-themes - experimentalThemes: { + // https://shiki.style/guide/dual-themes + themes: { light: 'github-light', dark: 'github-dark', }, // 添加自定义语言 // 注意:Shiki 内置了无数语言,包括 .astro! - // https://github.com/shikijs/shiki/blob/main/docs/languages.md + // https://shiki.style/languages langs: [], // 启用自动换行,以防止水平滚动 wrap: true, @@ -625,7 +625,7 @@ export default defineConfig({ }); ``` -我们还建议阅读 [Shiki 的主题文档](https://github.com/shikijs/shiki/blob/main/docs/themes.md#loading-theme),以了解更多关于主题、深色模式切换或通过 CSS 变量进行样式设置的内容。 +我们还建议阅读 [Shiki 的主题文档](https://shiki.style/themes),以了解更多关于主题、深色模式切换或通过 CSS 变量进行样式设置的内容。 #### 改变默认语法高亮模式