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
The model gives multiple p and li tags as a the markdown is added to the text - I'm appending a blinking dot as a typing indicator at the end of the message. Is there a way to pass the index to the props of the rendered p and li tags so that I append the blinking dot to the last p or li tag? (Right now it's appending the image to every p and li tags) (my guess was to set the last boolean to that condition but there's no index information in the props)
The issue is not with the typing animation and CSS - I need to display the image based on the condition of the last element in react-markdown as each line in the final html is rendered as a p or li tag. How to see whether the tag is actually the last one in react-markdown? I found this issue -- remarkjs/react-markdown#213 -- but the functionality has been updated. How to achieve this with the current version of the library?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm rendering a markdown reply from an AI model and I want to add a typing indicator:
The model gives multiple p and li tags as a the markdown is added to the text - I'm appending a blinking dot as a typing indicator at the end of the message. Is there a way to pass the index to the props of the rendered p and li tags so that I append the blinking dot to the last p or li tag? (Right now it's appending the image to every p and li tags) (my guess was to set the last boolean to that condition but there's no index information in the props)
Beta Was this translation helpful? Give feedback.
All reactions