(editor: Editor, plugin: MarkdownSerializerPlugin)
| 100 | }, |
| 101 | |
| 102 | withEditorPlugin(editor: Editor, plugin: MarkdownSerializerPlugin) { |
| 103 | const plugins = MARKDOWN_SERIALIZER_PLUGINS.get(editor) ?? [] |
| 104 | if (plugins.find(p => p === plugin)) return |
| 105 | plugins.push(plugin) |
| 106 | MARKDOWN_SERIALIZER_PLUGINS.set(editor, plugins) |
| 107 | }, |
| 108 | |
| 109 | toMarkdown(value: Content[], plugins: MarkdownSerializerPlugin[] = []) { |
| 110 | const extensions: Options[] = [] |
no test coverage detected
searching dependent graphs…