MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getEditorMarkdown

Function getEditorMarkdown

packages/agentflow/src/atoms/utils/xmlTagUtils.ts:46–55  ·  view source on GitHub ↗
(editor: { getMarkdown(): string; getHTML(): string; isEmpty: boolean })

Source from the content-addressed store, hash-verified

44 * to serialise certain node types.
45 */
46export function getEditorMarkdown(editor: { getMarkdown(): string; getHTML(): string; isEmpty: boolean }): string {
47 try {
48 const markdown = editor.getMarkdown()
49 if (markdown) return markdown
50 if (editor.isEmpty) return ''
51 return editor.getHTML()
52 } catch {
53 return editor.getHTML()
54 }
55}
56
57// ── XML tag escape / unescape ──────────────────────────────────────────────────
58

Callers 4

handleModeChangeFunction · 0.90
VariableInputFunction · 0.90
RichTextEditorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected