feat: 基础文章编辑功能
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user