RangeError: Invalid content for node listItem: <>, on inserting an empty bullet point "-" for markdown #396
Unanswered
rarchitgupta
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@andrewdoro I believe you added markdown support in another PR, perhaps you could shed some light here |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Streaming an LLM response into the Novel editor causes this issue
I have configured the tiptap-markdown extension to accept markdown input into the editor like so:
I receive content from a stream like so in small bits (Langchain stream) and I accumulate the response in a variable. At the end of the loop, I insert the content into the editor. This works completely fine:
However when I try to insert the command inside the loop (This is essential to give it that streaming behaviour):
I get the error:
This can also be simulated by doing a simple:
I've tried accumulating more chunks per loop instead of inserting them one by one but it hasn't worked for me. And maintaining this streaming behaviour is important
Any help here would really be appreciated
Beta Was this translation helpful? Give feedback.
All reactions