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

Function transformWithEditor

packages/serializer/src/markdown.ts:83–94  ·  view source on GitHub ↗
(editor: Editor, node: Node = editor)

Source from the content-addressed store, hash-verified

81 },
82
83 transformWithEditor(editor: Editor, node: Node = editor) {
84 const MarkdownSerializerEditor = Object.assign({}, MarkdownSerializer)
85 const transforms = MARKDOWN_SERIALIZER_TRANSFORMS.get(editor) ?? []
86
87 MarkdownSerializerEditor.with(withEditorSerializerTransform, { editor })
88
89 for (const { transform, options } of transforms) {
90 MarkdownSerializerEditor.with(transform, options)
91 }
92
93 return MarkdownSerializerEditor.transform(node)
94 },
95
96 _plugins: [] as MarkdownSerializerPlugin[],
97

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…