Commit 950b0ca
committed
fix: preserve line breaks in expanded thinking content
Fixes #419
The thinking component was normalizing content to a single line even
in expanded mode, causing multi-line markdown content (headers,
lists, flow diagrams) to be collapsed into a single unreadable line.
Changes:
- Added variable that preserves line breaks
- Use in expanded mode instead of raw
- Clean up excessive consecutive newlines while preserving paragraph breaks
This ensures proper markdown rendering in the thinking section when
expanded, while maintaining the compact single-line preview.1 parent 9952953 commit 950b0ca
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | | - | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
0 commit comments