mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 17:11:17 -08:00
Fix text return in toPlainText function
This commit is contained in:
1 file changed
+1
-1
@@ -228,7 +228,7 @@ export const toPlainText = (
|
||||
}
|
||||
return isMarkdown
|
||||
? unescapeMarkdownBlockSequences(text, unescapeMarkdownInlineSequences)
|
||||
: node.text;
|
||||
: text;
|
||||
}
|
||||
|
||||
const children = node.children.map((n) => toPlainText(n, isMarkdown)).join('');
|
||||
|
||||
Reference in new issue
Block a user