Skip to content

Releases

Swift-GFM 1.1.0

Choose a tag to compare

@ThorFuchs ThorFuchs released this 19 Nov 22:02
9a4176b
  • Add MarkdownEngine.renderRecognizingMath(_:), an opt-in HTML document
    stream that carries inline and display TeX separately for a caller-provided
    renderer. It preserves the captured formula spelling without requiring
    KaTeX. The standard cmark render and parse profiles remain unchanged.
  • Document the math profile's delimiter rules, safe insertion positions and
    fallback behavior. Math is not recognized in table cells, code or image
    descriptions; unsafe raw HTML and NUL input are rejected by this profile.

Swift-GFM 1.0.1

Choose a tag to compare

@ThorFuchs ThorFuchs released this 18 Nov 10:10
2cb9450
  • Add a GFM syntax guide and a gallery of runnable Markdown examples with
    verified HTML output and styled browser previews.
  • Remove two bundled test fixtures with unresolved individual provenance from
    new source snapshots, and add independently authored regression cases. The
    pinned backend and runtime behavior are unchanged.

Swift-GFM 1.0.0

Choose a tag to compare

@ThorFuchs ThorFuchs released this 17 Nov 17:03
d1c262f

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, Hashable Swift 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() and MarkdownEngine() 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 MarkdownEngineError with an extensible code and
    context.
  • Serialize all backend access through one lock, and rename the vendored C
    globals so SwiftGFM links next to other cmark copies.
  • swift-gfm command line that mirrors cmark-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/.