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

Function transformWithEditor

packages/deserializer/src/markdown.ts:165–177  ·  view source on GitHub ↗
(editor: Editor, node: Content | Root)

Source from the content-addressed store, hash-verified

163 },
164
165 transformWithEditor(editor: Editor, node: Content | Root) {
166 const MarkdownDeserializerEditor = Object.assign({}, MarkdownDeserializer)
167
168 const transforms = MARKDOWN_DESERIALIZER_TRANSFORMS.get(editor) ?? []
169
170 MarkdownDeserializerEditor.with(withEditorDeserializerTransform, { editor })
171
172 for (const { transform, options } of transforms) {
173 MarkdownDeserializerEditor.with(transform, options)
174 }
175
176 return MarkdownDeserializerEditor.transform(node)
177 },
178
179 _plugins: [] as MarkdownDeserializerPlugin[],
180

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…