8000 fix(chat): render user messages as literal text by Aaravkhanal · Pull Request #569 · google/adk-web · GitHub
[go: up one dir, main page]

Skip to content

fix(chat): render user messages as literal text - #569

Open
Aaravkhanal wants to merge 1 commit into
google:mainfrom
Aaravkhanal:codex/fix-user-message-markdown-548
Open

Aaravkhanal wants to merge 1 commit into
google:mainfrom
Aaravkhanal:codex/fix-user-message-markdown-548

Conversation

@Aaravkhanal
Copy link
Copy Markdown
Contributor

Fixes #548.

What changed

User chat messages were passed through the same Markdown renderer as assistant responses, so text such as 2*3*4*5 was interpreted as emphasis. Add an opt-in literal-text mode to the shared Markdown component and enable it for user-role message bubbles. Angular interpolation keeps the text escaped, while white-space: pre-wrap preserves spaces and line breaks. Assistant responses and other Markdown consumers retain Markdown rendering.

Add regression coverage for 2*3*4*5 and update the shared test Markdown component to accept the new input.

Validation

  • npm run build passes. Existing Angular and CommonJS dependency warnings remain.
  • git diff --check passes.
  • The focused Karma command compiled its browser bundle but aborted before running specs with ReferenceError: Cannot access 'MarkdownComponent' before initialization through the existing custom-json-viewer.component.ts import cycle. No test assertion ran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

adk web: asterisks in user messages rendered as Markdown italic instead of literal text

1 participant

0