| 6 | export type CodeBlockHotkey = string | ((e: KeyboardEvent) => boolean) |
| 7 | |
| 8 | export interface CodeBlockOptions { |
| 9 | locale?: Record<string, CodeBlockLocale> |
| 10 | hotkey?: CodeBlockHotkey |
| 11 | shortcuts?: string[] | boolean |
| 12 | plugins?: Extension[] |
| 13 | languages?: { |
| 14 | value: string |
| 15 | content?: string |
| 16 | plugin?: LanguageSupport |
| 17 | }[] |
| 18 | } |
| 19 | |
| 20 | const CODEBLOCK_OPTIONS = new WeakMap<Editor, CodeBlockOptions>() |
| 21 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…