Commit 0330b8a
authored
Migrate vibecoding examples from React-Markdown to Streamdown (#1307)
### Description
This pull request refactors the rendering of markdown-like content
across both the Vibe Coding Platform and Python IDE frontend by
replacing all usages of `react-markdown` (and related plugins) with the
new `Streamdown` component. This change streamlines markdown rendering,
removes custom renderer code, and updates dependencies accordingly.
**Rendering changes:**
* Replaced all instances of `MarkdownRenderer` and `react-markdown` with
the `Streamdown` component in chat message components, including
`reasoning.tsx`, `report-errors.tsx`, `run-command.tsx`, `text.tsx`, and
the Python IDE's `ChatTimeline`. This ensures consistent markdown
rendering using `Streamdown` throughout the application.
[[1]](diffhunk://#diff-b18939f0843715ec8c0666a86ac3a40aeb74a949d75ed4a4c7044509c6c5f140L2-R4)
[[2]](diffhunk://#diff-b18939f0843715ec8c0666a86ac3a40aeb74a949d75ed4a4c7044509c6c5f140L40-R40)
[[3]](diffhunk://#diff-bf6adb853c9bf0f1477299bafde4fe12e16e1a1ec04f57345ed2fb0fa700fb4dL5-R5)
[[4]](diffhunk://#diff-bf6adb853c9bf0f1477299bafde4fe12e16e1a1ec04f57345ed2fb0fa700fb4dL19-R19)
[[5]](diffhunk://#diff-fc0c7defb7085883bf5dd5398baba17a38098ce843b4743034fc1a37f0dfa001L6-R6)
[[6]](diffhunk://#diff-fc0c7defb7085883bf5dd5398baba17a38098ce843b4743034fc1a37f0dfa001L32-R34)
[[7]](diffhunk://#diff-72b605cc3f8ad8db3dba8de42ffaccb69e2e2340cfb934e6a7dcfa9d870f2afbL2-R7)
[[8]](diffhunk://#diff-0bc316cdaf20986080d11e3ce067606ddadf03f0651b580e1f746eec5c8133bfL2-R2)
[[9]](diffhunk://#diff-0bc316cdaf20986080d11e3ce067606ddadf03f0651b580e1f746eec5c8133bfL92-R91)
[[10]](diffhunk://#diff-0bc316cdaf20986080d11e3ce067606ddadf03f0651b580e1f746eec5c8133bfL467-R464)
* Removed the custom `MarkdownRenderer` component and its associated
code, as it is no longer needed with the adoption of `Streamdown`.
**Dependency and configuration updates:**
* Updated `package.json` files to remove `react-markdown`, `remark-gfm`,
and `rehype-raw` dependencies and add `streamdown` as a new dependency
for both projects.
[[1]](diffhunk://#diff-3c8075b8a95131416e3856c63c1c28bdb94a30f320b0065b2ce9586e91168dccL40-L45)
[[2]](diffhunk://#diff-76ef8e0a9755e6f1a85dd18d222ac6ace40e838e7f21a552e2b1592247946ab1L25-R25)
* Updated Tailwind and build configuration files to include
`streamdown`'s distribution files for proper styling and integration.
[[1]](diffhunk://#diff-72477083d1a4198c17e7ca54cf97560fc108079f3ea55004730eb5fb99367d6cR3)
[[2]](diffhunk://#diff-261c16ce1a55260f7746845509ed30efc060338b4af10c1bd5f3da8d041f852eR7)
### Demo URL
Awaiting preview deploy.
### Type of Change
- [ ] New Example
- [x] Example updates (Bug fixes, new features, etc.)
- [ ] Other (changes to the codebase, but not to examples)1 parent 6a89bca commit 0330b8a
File tree
12 files changed
+2939
-183
lines changed- apps/vibe-coding-platform
- app
- components
- chat/message-part
- markdown-renderer
- python/vibe-coding-ide/frontend
- src/components/Chat/ChatTimeline
12 files changed
+2939
-183
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
Lines changed: 0 additions & 96 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
0 commit comments