GFMarkdown Library
The GFMarkdown Swift library is a wrapper around the excellent cmark-gfm C library.
Originally developed for SwiftySites, it can be used from any Swift project needing to translate CommonMark / GitHub Flavored Markdown (GFM) into plain old HTML.
It exposes a simple interface for parsing Markdown strings while exposing all CMark options as well as every GFM extension available. This can be done via the @Markdown
property wrapper or using the MarkdownString
object.
GFMarkdown is distributed as a Swift Package and includes all binary dependencies for macOS (Apple Silicon and Intel) and Linux. Find the full DocC documentation here as well as attached to each release.