Overview of MarkdownDisplayView
masterMarkdownDisplayView is a high-performance, 100% native iOS UIKit component for rendering Markdown using TextKit 2. It is designed for zero-WebView overhead, providing instant loading and low memory usage.
Key Capabilities:
- Native LaTeX & Chemistry Support: Includes a custom recursive descent parser and CoreGraphics/CoreText engine for math (calculus, matrices, etc.), inorganic chemistry (
\ce), and organic chemistry structures (\chemfig). - AI/SSE Streaming: Optimized for real-time AI chat with millisecond-level incremental UI updates and a buffering module to prevent flickering during complex formula rendering.
- Markdown Compliance: Supports headers, lists, tables, quotes, images, footnotes, collapsible blocks, and horizontally scrollable code blocks.
- Code Highlighting: Built-in support for over 20 common programming languages.
- Navigation: Automatic Table of Contents (TOC), title jumping, and document anchors.
- Theming: Supports custom fonts, colors, spacing, and light/dark mode presets.