ui: BBCode in chat, and the welcome message as the server chat's first line
Other clients format chat with BBCode, and it showed as raw tags; only file links were taken out. One parser, vm/bbcode.rs, now reads every message into a Doc of blocks (lines, quotes, code, list items, rules) of styled spans, which the chat draws with one MessageText (also in the pins drawer and the studio's chat), and which previews, notifications and the home's news show on one line. Only known tags are read, so relay prefixes such as [Nova] stay. Emoji are split per span, so a message with emoji keeps its line breaks. [img] pictures on the web come through the engine's picture cache (Command::FetchPicture), within ui.image_preview_kb and only with cache.fetch_images; otherwise they stay links. Built lines are kept per message and revision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
1 parent
9e0f0e05ad
commit
531334d826
22 files changed
+2350
-243
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user