Commit a971e3a
feat: render markdown and math formulas in streaming messages and add link support
- Replace plain Text() with StreamingMarkdownText in AssistantStreamingBubble
so markdown formatting, code blocks, math formulas, and tables render
properly during token streaming
- Add StreamingMarkdownText composable (bypasses completed-message cache)
- Add markdown link [text](url) support to inline formatter
Co-authored-by: Godzilla675 <131464726+Godzilla675@users.noreply.github.com>1 parent acafcda commit a971e3a
2 files changed
Lines changed: 38 additions & 3 deletions
File tree
- app/src/main/java/com/dark/tool_neuron/ui
- components
- screen/home
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
98 | 120 | | |
99 | 121 | | |
100 | 122 | | |
| |||
492 | 514 | | |
493 | 515 | | |
494 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
495 | 531 | | |
496 | 532 | | |
497 | 533 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
93 | | - | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
0 commit comments