{"repo":"Simon-He95/markdown-it-ts","free":true,"listed":false,"github":"https://github.com/Simon-He95/markdown-it-ts","clone":"git clone https://github.com/Simon-He95/markdown-it-ts.git","description":"A modern, type-safe rewrite of markdown-it in TypeScript: pluggable rules, split parse/render, CommonMark-compatible; fast one-shot parsing and even faster streaming/incremental updates.","language":"TypeScript","stars":169,"topics":["markdown","markdown-it","typescript","markdown-it-ts"],"license":"MIT","category":"productivity","readme_excerpt":"markdown-it-ts A TypeScript-first Markdown parser and renderer compatible with the markdown-it public API for common plugin patterns, with streaming/incremental parsing and async render. English 简体中文 Quick links: Docs index · Stream optimization · Performance report · Compatibility report Runtime note markdown-it-ts is ESM-only and requires Node.js = 18. In CommonJS projects, use dynamic import inside an async function: A TypeScript migration of markdown-it with modular architecture for tree-shaking and separate parse/render imports. Compatibility Contract markdown-it-ts targets the markdown-it public API for common parser, renderer, and plugin usage. Private markdown-it/lib/... imports, undocumented upstream internal state assumptions, direct CommonJS require('markdown-it-ts') , and Node.js / AsyncIterable inputs. UnboundedBuffer is the advanced append-only path for real chunk streams and only keeps a bounded tail in memory instead of the whole historical source string. If you also need bounded output memory for explicit chunk-stream inputs, use the sink form instead of retaining a full token array: For arbitrary in-place edits, use EditableBuffer . It stores the source in a piece table and reparses only from an anchor before the affected block instead of flattening and reparsing the whole document every time. Internally, both the full parse and the localized reparse paths now hand a PieceTableSourceView straight to md.core.parseSource(...) , so the selected range no longer ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Simon-He95","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Simon-He95/markdown-it-ts/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."}