

什麼是 StreamMD?
Every AI chat app re-parses the entire markdown on each token—O(n²) slowdown. After 500 tokens, that’s 500 full re-renders. StreamMD fixes this with incremental block parsing: only new text is processed, completed blocks are memoized (no re-render), and only the active block updates. Result: ~300x less work. Built-in syntax highlighting (15 langs, ~3kB, zero deps). Drop-in:
截圖
?
還沒有評論,來搶沙發吧!
X 上關於 StreamMD 的真實討論
去 X 發文
