引入 mdx 以显示 markdown 文档,使用 tailwind 默认排版样式;修正 eslint 规则
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@plugin "tailwindcss-animate";
|
||||
@plugin "@tailwindcss/typography";
|
||||
|
||||
:root {
|
||||
--idle: oklch(1 0 0);
|
||||
@@ -119,4 +120,4 @@
|
||||
th {
|
||||
@apply font-normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
src/app/test/page.tsx
Normal file
10
src/app/test/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import Qqwwee from "@/components/docs/qqwwee.mdx"
|
||||
import Markdown from "@/components/markdown"
|
||||
|
||||
export default async function TestPage(){
|
||||
return (
|
||||
<Markdown>
|
||||
<Qqwwee/>
|
||||
</Markdown>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user