feat(highlight): replace Prism with highlight.js and Atom One Dark

This commit is contained in:
eezd committed 2026-10-24 18:12:49 +08:00
1 parent 634ef9fc11
commit b123ef36db
10 files changed
+72 -134

No files matched your search

+1 -1
View File
@@ -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;实际失败必须与纯文本结果区分。