mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
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:
1 parent
9b836d5830
commit
e37e090ab2
3 files changed
+110
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user