Shuo Liu 1f89d7f515
feat(plugin-md-power): enable python code repl(#585) (#613)
* 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>
2025-06-06 21:14:59 +08:00

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
}
}