Skip to content

Commit 20efd91

Browse files
committed
feat(chat): Allow customizing content type of <shiny-user-chat>
1 parent f6b92d8 commit 20efd91

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

js/chat/chat.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ class ChatMessage extends LightElement {
188188

189189
class ChatUserMessage extends LightElement {
190190
@property() content = "...";
191+
@property() content_type: ContentType | "semi-markdown" = "semi-markdown";
191192

192193
render(): ReturnType<LitElement["render"]> {
193-
return contentToHTML(this.content, "semi-markdown");
194+
return contentToHTML(this.content, this.content_type);
194195
}
195196
}
196197

0 commit comments

Comments
 (0)