react-chat-widget
react-chat-widget copied to clipboard
Line breaks and other markdown support
Hi,
More of a question. I've been trialing use of this widget and I can get limited markdown to work (e.g. lists). However I'm not able to trigger line breaks or horizontal rules using markdown.
Is this something that is configurable or have I missed a beat here?
Thanks
Hi @byrne-greg ! Thanks for the heads up, that was a problem with the package we were using to render markdown and it was limited for those cases. We already changed it and it will be in the next version :smile:
Hi @mcallegari10, do you have an example of this? How can I use this markdown when I call addResponseMessage()
Tks
In case someone else wants to print line breaks in the response message: the only one that seems to work is \n
(double space \n
). <br/>
is escaped and \n
is ignored.
any update on this ?
I just found that I can use 2 \n to print line breaks , i.e., \n\n