Overview of Markstream features
mainMarkstream provides several specialized features for AI chat streaming interfaces:
- Progressive Rendering: Mermaid and D2 diagrams render incrementally as they are parsed.
- Streaming-first Rendering: Designed to handle tokenized and partial markdown chunks.
- Code Block Optimization:
- Monaco streaming integration: Efficient updates for large code blocks.
- Streaming diff code blocks: Displays diffs as they are being generated.
- Flexible rendering: Choose between Monaco or Shiki.
- Extensibility: Pluggable parse hooks for pre- and post-transforming tokens.
- Markdown Support: Full support for tables, math (via KaTeX), task checkboxes, and optional Emoji.
- Lubu features: Includes math rendering via KaTeX and i18n support.