修复:代码字体被normalize.css污染的问题

This commit is contained in:
2022-08-16 10:01:59 +08:00
parent 3dce25bbc1
commit ee8cfef365
2 changed files with 9 additions and 1 deletions

View File

@@ -1,7 +1,11 @@
import type { MarkdownOptions } from 'vitepress'
export const markdown: MarkdownOptions = {
theme: 'one-dark-pro', // Shiki主题, 所有主题参见: https://github.com/shikijs/shiki/blob/main/docs/themes.md
// Shiki主题, 所有主题参见: https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: {
light: 'material-palenight',
dark: 'one-dark-pro'
},
lineNumbers: true, // 启用行号
// 在所有文档的<h1>标签后添加<ArticleMetadata/>组件

View File

@@ -2,6 +2,10 @@ body {
font-size: 16px;
}
pre, code, kbd, samp {
font-family: var(--vp-font-family-mono);
}
.vp-doc h2 {
margin: 15px 0 16px;
padding-top: 10px;