{"repo":"LiYanan2004/MarkdownView","free":true,"listed":false,"github":"https://github.com/LiYanan2004/MarkdownView","clone":"git clone https://github.com/LiYanan2004/MarkdownView.git","description":"Display markdown content with SwiftUI.","language":"Swift","stars":829,"topics":["cmark","markdown","swift","swiftui","commonmark"],"license":"MIT","category":"mobile-apps","readme_excerpt":"MarkdownView Render Markdown in SwiftUI with native views, configurable styling, and extensible renderers. Powered by swift-markdown, fully compliant with the CommonMark standard. Platforms - macOS 13.0+ - iOS 16.0+ - tvOS 16.0+ - watchOS 9.0+ - visionOS 1.0+ Highlighted Features - Full CommonMark compliance - Built-in SVG image support - LaTeX math rendering - Continuous text selection on iOS and macOS - Extensible rendering with block directives - Customizable block styling Documentation You can view documentation on: - main @ Swift Package Index - main @ GitHub Pages Getting Started Swift Package Manager Add MarkdownView to your package dependencies: Add the product to your target: Usage Render static markdown Create a MarkdownView with a Markdown string. Render streaming Markdown StreamingMarkdownReader is optimized for rendering streaming markdown, with support for: - scheduled document processing - incremental parsing as new content arrives - background document parsing Create one StreamingMarkdownSource for each response and keep it alive for the lifetime of that stream. Update markdownSource.text as new chunks arrive, then call finishStreaming() when the stream finishes. Text selection Use MarkdownText when text selection behavior is more important than full view-based layout. MarkdownText is available when RichText framework is available, currently on iOS and macOS. Render math Enable LaTeX math rendering with markdownMathRenderingEnabled() . Both inline math and dis","default_branch":null,"files":null,"tree":[],"storefront":"/r/LiYanan2004","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LiYanan2004/MarkdownView/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."}