diff --git a/src/interface/web/app/components/chatMessage/chatMessage.tsx b/src/interface/web/app/components/chatMessage/chatMessage.tsx index 85bcc517..1c7757b4 100644 --- a/src/interface/web/app/components/chatMessage/chatMessage.tsx +++ b/src/interface/web/app/components/chatMessage/chatMessage.tsx @@ -301,6 +301,9 @@ export function TrainOfThought(props: TrainOfThoughtProps) { const iconColor = props.primary ? convertColorToTextClass(props.agentColor) : "text-gray-500"; const icon = chooseIconFromHeader(header, iconColor); let markdownRendered = DOMPurify.sanitize(md.render(props.message)); + + // Remove any header tags from markdownRendered + markdownRendered = markdownRendered.replace(//g, ""); return (
Conver return ConversationCommand.Summarize elif query.startswith("/diagram"): return ConversationCommand.Diagram + elif query.startswith("/code"): + return ConversationCommand.Code # If no relevant notes found for the given query elif not any_references: return ConversationCommand.General