* feat(plugin-md-power): enable python code repl(#585) * fix(plugin-md-power): correct grammars * fix(plugin-md-power): modify pnpm-lock.yaml * feat: tweak * chore: tweak --------- Co-authored-by: Shuo Liu <sliu84@outlook.com> Co-authored-by: pengzhanbo <volodymyr@foxmail.com>
31 lines
500 B
TypeScript
31 lines
500 B
TypeScript
import type { BuiltinTheme, ThemeRegistration } from 'shiki'
|
|
|
|
export type ThemeOptions =
|
|
| BuiltinTheme
|
|
| {
|
|
light: BuiltinTheme
|
|
dark: BuiltinTheme
|
|
}
|
|
|
|
export interface ReplOptions {
|
|
theme?: ThemeOptions
|
|
|
|
go?: boolean
|
|
kotlin?: boolean
|
|
rust?: boolean
|
|
python?: boolean
|
|
}
|
|
|
|
export interface ReplEditorData {
|
|
grammars: {
|
|
go?: any
|
|
kotlin?: any
|
|
rust?: any
|
|
python?: any
|
|
}
|
|
theme: ThemeRegistration | {
|
|
light: ThemeRegistration
|
|
dark: ThemeRegistration
|
|
}
|
|
}
|