mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac: rich text input
This commit is contained in:
parent
a4885ac549
commit
7cc2afe973
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@
|
|||
const nodes = lines.map(
|
||||
(line, index) =>
|
||||
index === 0
|
||||
? state.schema.text(line) // First line is plain text
|
||||
? state.schema.text(line ? line : []) // First line is plain text
|
||||
: state.schema.nodes.paragraph.create({}, line ? state.schema.text(line) : undefined) // Subsequent lines are paragraphs
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue