Can't figure out how to stream markdown into tiptap #5563
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It is very difficult to get streaming of formatted content into the editor it took me two weeks to get everything right for the content Ai pro extension. I would not say that there is an easy answer to this at all. I would recommend streaming into a preview element instead and only inserting the content into the editor afterwards. |
Beta Was this translation helpful? Give feedback.
-
@fgatti675 would you please share your solution? thx a lot! |
Beta Was this translation helpful? Give feedback.
-
if the LLM is returning markdown content, you can use a markdown to html converter and pass the results to
|
Beta Was this translation helpful? Give feedback.
It is very difficult to get streaming of formatted content into the editor it took me two weeks to get everything right for the content Ai pro extension. I would not say that there is an easy answer to this at all. I would recommend streaming into a preview element instead and only inserting the content into the editor afterwards.