Skip to content

Add Markdown rendering and collapsible thinking block to LlamaDemo#228

Merged
kirklandsign merged 1 commit into
mainfrom
android/add-markdown-rendering
Apr 9, 2026
Merged

Add Markdown rendering and collapsible thinking block to LlamaDemo#228
kirklandsign merged 1 commit into
mainfrom
android/add-markdown-rendering

Conversation

@kirklandsign
Copy link
Copy Markdown
Contributor

@kirklandsign kirklandsign commented Apr 6, 2026

  • Render model responses as Markdown using compose-richtext library
  • Parse /</think> tags into a separate collapsible thinking block with animated expand/collapse and vertical bar decoration
  • Always enable thinking mode for Qwen-3 and remove manual toggle button
  • User messages remain plain text
md thinking

Before:
before

- Render model responses as Markdown using compose-richtext library
- Parse <think>/<\/think> tags into a separate collapsible thinking block
  with animated expand/collapse and vertical bar decoration
- Always enable thinking mode for Qwen-3 and remove manual toggle button
- User messages remain plain text
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 6, 2026
@lucylq
Copy link
Copy Markdown
Contributor

lucylq commented Apr 8, 2026

Have a screenshot of the before/after changes?

@lucylq
Copy link
Copy Markdown
Contributor

lucylq commented Apr 9, 2026

wow nice!! Thank you!

@kirklandsign kirklandsign merged commit b818840 into main Apr 9, 2026
20 of 22 checks passed
@kirklandsign kirklandsign deleted the android/add-markdown-rendering branch April 9, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants