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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user