Skip to content

feat: render markdown in message views - #106

Open
utpalsinghdev wants to merge 1 commit into
offendingcommit:mainfrom
utpalsinghdev:utpalsinghdev/message-markdown
Open

feat: render markdown in message views#106
utpalsinghdev wants to merge 1 commit into
offendingcommit:mainfrom
utpalsinghdev:utpalsinghdev/message-markdown

Conversation

@utpalsinghdev

@utpalsinghdev utpalsinghdev commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Session messages and live chat currently show Markdown as raw syntax. Agent replies with headings, lists, code, and tables are hard to read.

This PR runs that content through the existing MarkdownRenderer (react-markdown + remark-gfm) after demo-mode masking. Raw HTML stays inert. javascript: URLs are not executable links. Peer representations already use this renderer.

Type

  • New feature

Test plan

  • pnpm lint passes
  • pnpm test passes
  • @openconcho/web build succeeds
  • Tested in browser:
    • A session message rendered a heading, list, fenced code, GFM table, and https://example.com link
    • A <script> payload stayed visible as text and did not run
    • Demo mode masked the message heading
    • A chat reply rendered the same heading

Related issues

Closes #88

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.

Render markdown in message view

1 participant