(next, _, { editor })
| 36 | const withEditorSerializerTransform: MarkdownSerializerWithTransform< |
| 37 | EditorMarkdownSerializerOptions |
| 38 | > = (next, _, { editor }) => { |
| 39 | return (node, options = {}) => { |
| 40 | if (Element.isElement(node)) { |
| 41 | const { type = 'paragraph' } = node |
| 42 | if (type !== 'paragraph') |
| 43 | return [{ type: 'html', value: HTMLSerializer.transformWithEditor(editor, node) }] |
| 44 | } |
| 45 | return next(node, options) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | export const MarkdownSerializer = { |
| 50 | transform(node: Node, options: MarkdownSerializerOptions = {}): Content[] { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…