0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/crates/markdown
zeronsh[bot] 46d4e42b34
Render Markdown in user messages and the rail's preview card (#1067)
User bubbles now render their Markdown the way replies do: strong,
emphasis, inline code, lists, and fences with highlighting and copy.
Newlines the person typed stay line breaks (a new `parse_message` mode).
Prompts that read the same as typed, and prompts carrying file chips,
keep the plain bubble.

The rail's hover card shows `Message from [mark] Chat` over an
agent-sent prompt instead of its raw routing header, and renders the
prompt and the reply's opening as styled prose clamped to a few lines,
with inline code on its wash. Only prose shows: fences, quotes, tables,
display formulas and rules would spend the card's few lines on their
least telling part, so they are left out, and a message of nothing but
a fence shows its first line. The sender's title and mark come from the
same lookup as the transcript's chat captions.

Co-authored-by: Wing <44917547+wingleeio@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com>
History 2026-10-27 09:53:48 -07:00
..
src Render Markdown in user messages and the rail's preview card (#1067) 2026-10-27 09:53:48 -07:00
Cargo.toml iOS: rewrite on a Rust core (analytic layout, incremental markdown, UIKit + Liquid Glass) (#570) 2026-09-26 22:57:46 -07:00