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
feat: add renderMarkdown toggle to MessageBubble (#101)
Adds a toggle for whether user message text should be rendered as markdown or as plain text. Previously always rendered as Markdown. Rendering as plain text is useful when rendering logs of old conversations.
J=APV-939
TEST=auto,manual
Added unit tests. Modified ChatPanel locally to use renderMarkdown=false, spun up test-site, and confirmed a Markdown link was rendered as plain text.
Copy file name to clipboardExpand all lines: docs/chat-ui-react.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
|[ChatInput({ placeholder, stream, inputAutoFocus, handleError, sendButtonIcon, customCssClasses, onSend, onRetry, })](./chat-ui-react.chatinput.md)| A component that allows user to input message and send to Chat API. |
13
13
|[ChatPanel(props)](./chat-ui-react.chatpanel.md)| A component that renders a full panel for chat bot interactions. This includes the message bubbles for the conversation, input box with send button, and header (if provided). |
14
14
|[ChatPopUp(props)](./chat-ui-react.chatpopup.md)| A component that renders a popup button that displays and hides a panel for chat bot interactions. |
15
-
|[MessageBubble({ message, showFeedbackButtons, showTimestamp, customCssClasses, formatTimestamp, linkTarget, onLinkClick, })](./chat-ui-react.messagebubble.md)| A component that displays the provided message. |
15
+
|[MessageBubble({ message, showFeedbackButtons, showTimestamp, customCssClasses, formatTimestamp, linkTarget, onLinkClick, renderMarkdown, })](./chat-ui-react.messagebubble.md)| A component that displays the provided message. |
16
16
|[useComposedCssClasses(builtInClasses, customClasses)](./chat-ui-react.usecomposedcssclasses.md)| useComposedCssClasses merges a component's built-in tailwind classes with custom tailwind classes. |
17
17
|[useReportAnalyticsEvent()](./chat-ui-react.usereportanalyticsevent.md)| Returns a function to send requests to Yext Analytics API. |
0 commit comments