Playground(示例演示)
仓库包含一个可交互的 playground 演示,用于本地调试和复现渲染问题。
在线演示
- Vue 3: https://markstream-vue.simonhe.me/
- React: https://markstream-react.pages.dev/
- Octane: https://markstream-octane.pages.dev/
- Solid: https://markstream-solid.pages.dev/
- React migration demo: https://markstream-react.pages.dev/migration-demo
- Nuxt: https://markstream-nuxt.pages.dev/
- Vue 2: https://markstream-vue2.pages.dev/
本地运行
运行演示:
bash
pnpm install
pnpm play
# 打开终端中显示的网址(通常为 http://localhost:5173)在演示中你可以尝试:
- 实时流式 Markdown 输入
- 渐进式 Mermaid
- 自定义组件映射
- stream-diffs 增强代码块集成示例
可直接打开的示例页面:
https://markstream-react.pages.dev/migration-demo:面向react-markdown用户的 before / after 迁移演示
Octane playground
打开 线上 Octane playground。源码位于 playground-octane,也可以在仓库根目录运行:
bash
pnpm install
pnpm play:octane
# http://localhost:4176Octane playground 与 React playground 对齐:包含流式对话控制、主题、自定义 thinking 节点、workers 和 /test 回归实验室,并通过 octane 与 markstream-octane 渲染。
Solid playground
打开 线上 Solid playground。源码位于 playground-solid,也可以在仓库根目录运行:
bash
pnpm install
pnpm play:solid
# http://localhost:4178支持 Controls、TPS/随机分片、主题、暂停/继续、源码编辑、全量恢复、长文档、HTML/SVG 与图表示例。/line-number-handoff-check 验证 pre → highlight 交接。