Skip to content

fix: render markdown in AI Assistant chat messages#400

Open
Devblaze14 wants to merge 1 commit into
Canopus-Labs:mainfrom
Devblaze14:fix/ai-chat-markdown-rendering
Open

fix: render markdown in AI Assistant chat messages#400
Devblaze14 wants to merge 1 commit into
Canopus-Labs:mainfrom
Devblaze14:fix/ai-chat-markdown-rendering

Conversation

@Devblaze14

Copy link
Copy Markdown

📝 Pull Request Description

Related Issue

Closes #399

Summary

The AI Assistant chat rendered assistant replies as raw text, so markdown showed
literal syntax (**bold**, *italic*, ~~strike~~, `code`, */1. list
markers, code fences). This routes assistant messages through the existing
AIResponsePreview component (react-markdown + remark-gfm), so they now render as
formatted markdown — bold, italic, strikethrough, inline code, bulleted / numbered /
nested lists, and code blocks. User messages and the typing indicator are unchanged.
No new dependencies (both libs were already installed).


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Ran npm run lint; no new errors from this change.

Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: AI Assistant chat renders markdown (bold, lists, code) as raw text

1 participant