(editor: Editor)
| 20 | const CODEBLOCK_OPTIONS = new WeakMap<Editor, CodeBlockOptions>() |
| 21 | |
| 22 | export const getOptions = (editor: Editor): CodeBlockOptions => { |
| 23 | return CODEBLOCK_OPTIONS.get(editor) ?? {} |
| 24 | } |
| 25 | |
| 26 | export const setOptions = (editor: Editor, options: CodeBlockOptions) => { |
| 27 | CODEBLOCK_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…