mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-04 14:46:42 +00:00
feat(ui): update markdown syntax highlighting theme to GitHub Dark Default
This commit is contained in:
parent
fef09f9d21
commit
d3eaf31d32
@ -22,6 +22,7 @@
|
||||
import swift from "shiki/langs/swift.mjs"
|
||||
import ts from "shiki/langs/typescript.mjs"
|
||||
import yaml from "shiki/langs/yaml.mjs"
|
||||
import githubDarkDefault from "shiki/themes/github-dark-default.mjs"
|
||||
import vitesseDark from "shiki/themes/vitesse-dark.mjs"
|
||||
import Markdown from "svelte-exmarkdown"
|
||||
import type { Plugin } from "svelte-exmarkdown"
|
||||
@ -40,7 +41,7 @@
|
||||
rehypePlugin: [
|
||||
rehypeShikiFromHighlighter,
|
||||
createHighlighterCoreSync({
|
||||
themes: [vitesseDark],
|
||||
themes: [githubDarkDefault],
|
||||
langs: [
|
||||
ts,
|
||||
svelte,
|
||||
@ -63,7 +64,7 @@
|
||||
engine: createJavaScriptRegexEngine()
|
||||
}),
|
||||
{
|
||||
theme: "vitesse-dark"
|
||||
theme: "github-dark-default"
|
||||
}
|
||||
]
|
||||
} satisfies Plugin
|
||||
|
Loading…
x
Reference in New Issue
Block a user