完善 mdx 文件处理,修复代码高亮问题
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
'use client'
|
||||
import QuickStart from '@/components/docs/quick-start.mdx'
|
||||
import Markdown from '@/components/markdown'
|
||||
|
||||
export default function CollectPage() {
|
||||
return (
|
||||
<Markdown>
|
||||
<QuickStart/>
|
||||
</Markdown>
|
||||
<QuickStart/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@plugin "tailwindcss-animate";
|
||||
@plugin "@tailwindcss/typography";
|
||||
|
||||
@import 'highlight.js/styles/a11y-dark.css';
|
||||
|
||||
:root {
|
||||
--idle: oklch(1 0 0);
|
||||
--idle-muted: oklch(0.965 0 0);
|
||||
@@ -153,3 +154,8 @@
|
||||
@apply font-normal;
|
||||
}
|
||||
}
|
||||
|
||||
pre code.hljs {
|
||||
background: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user