feat: 基础文章编辑功能

This commit is contained in:
2026-07-06 14:20:21 +08:00
parent e67829562d
commit 12e521891a
13 changed files with 1966 additions and 2175 deletions

View File

@@ -3,7 +3,36 @@ import {createHighlighter} from 'shiki'
const highlighter = await createHighlighter({
themes: ['github-dark-dimmed'],
langs: ['javascript', 'typescript', 'css', 'tsx', 'less', 'scss', 'text'],
langs: [
"bash",
"json",
"yaml",
"xml",
"html",
"css",
"scss",
"javascript",
"typescript",
"jsx",
"tsx",
"vue",
"markdown",
"sql",
"graphql",
"python",
"java",
"go",
"rust",
"c",
"cpp",
"csharp",
"php",
"ruby",
"kotlin",
"swift",
"dockerfile",
"nginx"
]
})
const resolveLang = (lang) => {