AI chat: render markdown in responses (bold, lists, code blocks, links) #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
AI responses in the chat UI are rendered as plain text. Markdown formatting like
**bold**, numbered lists, code blocks, and links appear as raw markup instead of being rendered.Screenshot
See the
**AI Integration**:markers showing raw instead of bold text.Expected
AI responses should render markdown properly:
**bold**→ bold# Heading→ heading`code`→ inline codeApproach
In
hero_archipelagos/archipelagos/intelligence/ai/src/views/message_bubble.rs, the AI message content is rendered withwhite-space: pre-wrapas plain text. Options:pulldown-cmarkcompiled to WASM) and render withdangerous_inner_htmlOption 1 is cleanest since it stays in Rust/WASM.
mik-tf referenced this issue2026-03-18 23:28:29 +00:00
mik-tf referenced this issue2026-03-18 23:33:28 +00:00
Deployed to herodev
Added
pulldown-cmarkmarkdown renderer to the AI chat island. AI responses now render:inline codeand code blocks with dark backgroundUser messages remain plain text.
Commit: hero_archipelagos@ce281fa on
developmentmik-tf referenced this issue2026-03-19 00:06:50 +00:00
Browser verification pending
The last deploy used
SKIP_SHRIMP=1for the #35 fix, which excluded the Shrimp binary. AI Assistant shows HTTP 404 because Shrimp is not running. The markdown rendering code is deployed but cannot be tested until a full rebuild restores Shrimp.Rebuilding now with full
make distto restore Shrimp. Will verify markdown rendering after deploy.mik-tf referenced this issue2026-03-19 00:17:18 +00:00
Reopened — code is deployed but not yet browser-verified. Shrimp was missing from last image (SKIP_SHRIMP build). Full rebuild in progress, will verify and close after deploy.
mik-tf referenced this issue2026-03-19 00:26:50 +00:00
Closed — markdown rendering works in dark mode. Light mode has a separate theme issue (bold text invisible due to CSS variable/color inheritance problem). See #47.
mik-tf referenced this issue2026-03-19 02:54:39 +00:00