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

Function withEditorHTMLSerializerTransform

packages/serializer/src/html.ts:46–51  ·  view source on GitHub ↗
(next, _, { editor })

Source from the content-addressed store, hash-verified

44const withEditorHTMLSerializerTransform: HTMLSerializerWithTransform<
45 EditorHTMLSerializerOptions
46> = (next, _, { editor }) => {
47 return (node, options = {}) => {
48 if (Text.isText(node)) return TextSerializer.transformWithEditor(editor, node)
49 return next(node, options)
50 }
51}
52
53export const HTMLSerializer = {
54 transform(node: Node, options: HTMLSerializerOptions = {}): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…