{"repo":"Simon-He95/stream-markdown","free":true,"listed":false,"github":"https://github.com/Simon-He95/stream-markdown","clone":"git clone https://github.com/Simon-He95/stream-markdown.git","description":"This project includes a lightweight, framework-agnostic incremental renderer for Shiki:","language":"TypeScript","stars":15,"topics":["markdown","shiki","stream"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Streamed syntax highlighting (incremental) This project includes a lightweight, framework-agnostic incremental renderer for Shiki: - src/utils/shiki-render.ts – render HTML with each line wrapped in .line - src/utils/incremental-tokens.ts – token-based incremental updater (no HTML parsing) Basic usage (token-based): Note: For non-blocking behavior when many code blocks update concurrently, use createScheduledTokenIncrementalUpdater which defers DOM/token updates to idle time and prioritizes visible containers. The high-level createShikiStreamRenderer also uses the scheduled updater by default to avoid blocking the main thread. It incrementally updates the last changed line and appends new lines; if earlier lines diverge (e.g. multi-line tokens), it safely falls back to a full re-render. Thanks This project is built with the help of these awesome libraries: - shiki — Syntax highlighter powered by TextMate grammars and VS Code themes Thanks to the authors and contributors of these projects! Star History License MIT © Simon He","default_branch":null,"files":null,"tree":[],"storefront":"/r/Simon-He95","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Simon-He95/stream-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}