feat: render BBCode in chat messages

Server, channel and private chat now render [b] [i] [u] [s] [color]
[url] (and [img] as a plain link), and bare http(s) URLs become links -
the welcome message's [URL]...[/URL] showed up as raw text before.
Built as React elements, so message text can't inject markup; only
http(s) links are allowed and [color] only takes a name or hex value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-04 10:29:05 +00:00
1 parent 9b836d5830
commit e37e090ab2
3 files changed
+110 -3

No files matched your search

+5
View File
@@ -2452,6 +2452,11 @@
word-break: break-word;
}
.ts-chat-bubble a {
color: var(--accent);
text-decoration: underline;
}
.ts-chat-from {
font-weight: 600;
color: var(--accent);