You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing that is cool with react-markdown is that even if you provide a content that is being streamed, what was already added to the DOM won't re-rendered again, allowing the user to interact with the existing text while the content is being streamed.
It seems this does not work the same with solid-markdown.
Hey @baptisteArno, just fixed this in v2.0.3, there's now a renderingStrategy prop, you can pass "reconcile" to, to make it diff the ASTs and only re-render the parts of the DOM that changed.
One thing that is cool with
react-markdown
is that even if you provide a content that is being streamed, what was already added to the DOM won't re-rendered again, allowing the user to interact with the existing text while the content is being streamed.It seems this does not work the same with solid-markdown.
Reproduction:
If you select the text, whenever the component re-renders, the selection will be removed.
The text was updated successfully, but these errors were encountered: