A Swift library for blazing fast CommonMark Markdown rendering, built on cmark.
Down is a Swift library for parsing and rendering Markdown text, specifically compliant with the CommonMark specification. It solves the need for a fast, reliable, and native Markdown processor in Swift applications across Apple platforms and Linux. By wrapping the cmark C library, it provides exceptional performance and a comprehensive set of output formats.
Swift developers building iOS, macOS, tvOS, or Linux apps that need to display or process Markdown content, such as note-taking apps, documentation viewers, or chat applications.
Developers choose Down for its combination of native Swift API, blistering performance from the cmark engine, and support for multiple output formats including NSAttributedString and web views. It's the go-to library for Markdown in Swift due to its correctness, speed, and ease of integration.
Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages the cmark C library, which can render War and Peace in 127 milliseconds, making it exceptionally fast for batch processing.
Supports conversion to HTML, XML, LaTeX, NSAttributedString, and more, providing flexibility for diverse application needs.
Includes DownView for easy embedding in UIKit or AppKit apps and a Swifty API that feels natural in Apple's ecosystem.
Offers customizable rendering through protocols for each output type, allowing fine-grained integration and customization.
Does not support extensions like GitHub Flavored Markdown, which are commonly needed for modern collaborative platforms.
DownView provides minimal out-of-the-box styling, requiring significant CSS work and custom bundles for advanced theming.
The README's Swift support table shows tight coupling to Swift versions, which can lead to maintenance overhead during updates.