fix(ui): render user message text as markdown

User text parts now use the same Markdown renderer + cache path as assistant messages, while keeping role-specific heading and accent colors.
This commit is contained in:
Shantur Rathore
2026-02-17 22:44:30 +00:00
parent 6de6ef5a4a
commit c8ff858565
3 changed files with 48 additions and 28 deletions

View File

@@ -9,6 +9,9 @@
line-height: var(--line-height-normal);
font-weight: var(--font-weight-regular);
color: var(--text-primary);
/* Message containers may use `whitespace-pre-wrap` for plain text.
Markdown should always match assistant rendering (normal whitespace). */
white-space: normal;
}
.markdown-body p,
@@ -28,7 +31,7 @@
.markdown-body h5,
.markdown-body h6 {
font-family: inherit;
color: inherit;
color: var(--markdown-heading-color, inherit);
font-weight: var(--font-weight-semibold);
line-height: 1.3;
margin-top: 0.9em;
@@ -71,7 +74,7 @@
.markdown-body strong {
font-weight: var(--font-weight-regular);
color: var(--message-assistant-border);
color: var(--markdown-accent, var(--message-assistant-border));
}
.markdown-body em {