修复:代码字体被normalize.css污染的问题
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
import type { MarkdownOptions } from 'vitepress'
|
import type { MarkdownOptions } from 'vitepress'
|
||||||
|
|
||||||
export const markdown: MarkdownOptions = {
|
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, // 启用行号
|
lineNumbers: true, // 启用行号
|
||||||
|
|
||||||
// 在所有文档的<h1>标签后添加<ArticleMetadata/>组件
|
// 在所有文档的<h1>标签后添加<ArticleMetadata/>组件
|
||||||
|
@@ -2,6 +2,10 @@ body {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre, code, kbd, samp {
|
||||||
|
font-family: var(--vp-font-family-mono);
|
||||||
|
}
|
||||||
|
|
||||||
.vp-doc h2 {
|
.vp-doc h2 {
|
||||||
margin: 15px 0 16px;
|
margin: 15px 0 16px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
Reference in New Issue
Block a user