Repository navigation
Swift-GFM 1.0.0
First public release.
- Render Markdown with the vendored, unmodified GitHub cmark-gfm
0.29.0.gfm.13(27d942c8b0a62d192f616e5bf3578f4b6a89e180) to HTML, XML,
CommonMark, plain text, LaTeX, and man. - Parse into a read-only,
Sendable,HashableSwift AST with typed node
kinds, source ranges, footnotes, task lists, and table alignments, plus
iterative visitors and walkers. - Configure the five built-in GFM extensions and every cmark-gfm option.
MarkdownConfiguration()andMarkdownEngine()both default to the GFM
extensions; unsupported extension and option bits are rejected. - Bound input size and AST size or depth with optional
MarkdownResourceLimits. - Report failures as
MarkdownEngineErrorwith an extensiblecodeand
context. - Serialize all backend access through one lock, and rename the vendored C
globals so SwiftGFM links next to other cmark copies. swift-gfmcommand line that mirrorscmark-gfm, including file arguments.- Supports Swift 6.0 and later on macOS, Linux, iOS, tvOS, watchOS, visionOS,
WebAssembly (WASI), and the Static Linux SDK. - API reference and guides at
https://thorfuchs.github.io/Swift-GFM/documentation/swiftgfm/.