MCPcopy Create free account
hub / github.com/editablejs/editable / withEditorPlugin

Function withEditorPlugin

packages/serializer/src/markdown.ts:102–107  ·  view source on GitHub ↗
(editor: Editor, plugin: MarkdownSerializerPlugin)

Source from the content-addressed store, hash-verified

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[] = []

Callers 2

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…