feat(highlight): replace Prism with highlight.js and Atom One Dark
This commit is contained in:
1 parent
634ef9fc11
commit
b123ef36db
10 files changed
+72
-134
No files matched your search
@@ -6,7 +6,7 @@ export interface HighlightRequest {
|
||||
code: string
|
||||
}
|
||||
|
||||
// 保留 Prism 的嵌套 token 与原文,编辑器使用官方 token 类样式。
|
||||
// 保留 highlight.js 的嵌套 token 与原文,编辑器使用官方 token 类样式。
|
||||
export type TokenRun = (string | { classes: string; content: TokenRun })[]
|
||||
|
||||
// 语言不受支持时 tokens 为 null;实际失败必须与纯文本结果区分。
|
||||
|
||||
Reference in new issue
Block a user