Skip to content

Commit 02bd5b8

Browse files
authored
Fix text return in toPlainText function
1 parent 196bacd commit 02bd5b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/editor/output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const toPlainText = (
228228
}
229229
return isMarkdown
230230
? unescapeMarkdownBlockSequences(text, unescapeMarkdownInlineSequences)
231-
: node.text;
231+
: text;
232232
}
233233

234234
const children = node.children.map((n) => toPlainText(n, isMarkdown)).join('');

0 commit comments

Comments
 (0)