https://retellai.com/?utm_source=discord&utm_medium=seo logo
The Retell Chat Widget on our website and noticed ...
# ❓・ai-evy-support
k
@AI Evy The Retell Chat Widget on our website and noticed two issues that differ from the formatting in the Retell Dashboard “Test Chat”. Newlines / numbered lists are not rendered correctly in the website widget In the Dashboard test chat, the agent’s output is displayed with proper line breaks and numbered lists. In the embedded website widget, the same response appears “collapsed” into a single paragraph (numbers/items don’t stay on separate lines). Our agent prompt explicitly enforces one item per line, e.g.: “Each new item/number must be returned on a new line. Never put multiple items in one paragraph.” Example output: Ako vás môžeme osloviť? 1 - Chcem nový web 2 - Chcem e-shop 3 - Chcem AI riešenie Question: Does the website widget support Markdown rendering for numbered lists and line breaks? If yes: is there a setting/flag to enable Markdown or preserve newlines? If not: is there a recommended approach (supported CSS selector, widget option, or callback) to ensure the widget preserves newlines (e.g., using white-space: pre-line/pre-wrap)?
a
Thanks for tagging me @kirilltaneev. I'll look through relevant sources and get back to you shortly.
tellai.com/deploy/chat-widget) - [Text Formatting in Website Widget not the same as on Retellai.com]() - [Chatbot formatting issue]()
### Answer This is a known issue that other users have reported—the Chat Widget on embedded websites does not render formatting (newlines, numbered lists, markdown) the same way the Retell Dashboard test chat does. [(1) ]() [(2) ]() Current state: - The official Chat Widget documentation does not include any attribute or setting to enable Markdown rendering or preserve newlines. [(3) ]() - Users have observed that webhook data shows properly formatted output (with newlines, bullets, etc.) , but the widget itself collapses everything into a single paragraph. [(1) ]() [(2) ]() - This appears to be a rendering limitation within the widget itself rather than an issue with the agent's output. What you can try: - Some community members have suggested prompting for raw/plain text or JSON format, though results have been inconsistent. [(2) ]() - CSS approaches like
white-space: pre-line
or
pre-wrap
have been attempted without confirmed success. [(1) ]() Recommendation: Since there's no documented widget option or flag to enable proper formatting, I'd suggest submitting a feature request or bug report to Retell directly. This issue has been raised in the community forum and appears to be a missing feature on Retell's side. Check out these potentially useful sources: - [Retell Website Widget](
​ To learn more, see the sources I considered: [[1] Text Formatting in Website Widget not the same as on Retellai.com](https://community.retellai.com/t/text-formatting-in-website-widget-not-the-same-as-on-retellai-com/713) [[2] Chatbot formatting issue](https://discord.com/channels/1186424376300679209/1410337496922984518) [[3] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.