Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/content/docs/zh-cn/guides/integrations-guide/markdoc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export default defineMarkdocConfig({

### 语法高亮

`@astrojs/markdoc` 提供了 [Shiki](https://github.com/shikijs/shiki) 和 [Prism](https://github.com/PrismJS) 扩展来高亮你的代码块。
`@astrojs/markdoc` 提供了 [Shiki](https://shiki.style) 和 [Prism](https://github.com/PrismJS) 扩展来高亮你的代码块。

#### Shiki

Expand All @@ -226,14 +226,14 @@ export default defineMarkdocConfig({
shiki({
// 从 Shiki 的内置主题中进行选择(或添加你自己的主题)
// 默认:'github-dark'
// https://github.com/shikijs/shiki/blob/main/docs/themes.md
// https://shiki.style/themes
theme: 'dracula',
// 启用单词折叠以防止水平滚动
// 默认:false
wrap: true,
// 传入自定义语言
// 注意:Shiki 内置了许多的 langs,包括 `.astro`!
// https://github.com/shikijs/shiki/blob/main/docs/languages.md
// https://shiki.style/languages
langs: [],
}),
],
Expand Down