Repository navigation
Releases
GMSetzer v1.0.0
GMSetzer 1.0.0
The first stable source API for GMSetzer, a pure Swift Markdown parser with
CommonMark, GitHub Flavored Markdown, exact source positions and safe-default
HTML. The
release record identifies executed checks
and the publication state.
Included
- CommonMark 0.31.2 and GFM, with all protected 652 CommonMark / 672 pinned GFM
examples. GFM includes tables, task lists, strikethrough, extended autolinks
and rendering policies. - Independently selected raw YAML/TOML front matter, named footnotes, opaque
inline/display/fenced TeX, GitHub alerts and Obsidian-style callouts. - Immutable validated trees over original UTF-8 bytes, optional source-spelled
tokens, exact UTF-16/line/scalar conversion, outlines and snapshot-bound queries. - Three opt-in native analysis rules, portable findings, explicit suggested
fixes and English/German message lookup. - Safe-default HTML and explicit renderer hooks.
MarkdownHTML.rendervalidates
one parser configuration and composes standard selected footnote/admonition HTML. - Progressive structural HTML groups from a complete document, with explicit
whole-document fallbacks and caller-controlled consumption/cancellation. - Six library products, DocC guides/API references, a frozen source API baseline
and Swift Package Index documentation configuration. No runtime dependencies.
Requirements and compatibility
Requires Swift 6.2 or later. Declared Apple deployment minimums are macOS 15,
iOS 18 and visionOS 2; Linux is supported. Build/test evidence and minimum-OS
runtime coverage have distinct scopes in the release record.
The 1.x source-compatibility contract covers public
signatures, existing conformances, documented coordinate/ownership contracts,
extension/token/message identifiers and safe defaults. Source-breaking changes
require a major release. Binary ABI, in-memory layout, persistent tree schemas,
stable hash values and fixed timings are outside that contract.
Installation
Select the stable 1.x series with Swift Package Manager:
.package(url: "https://github.com/kerker00/GMSetzer.git", from: "1.0.0")Depend on .product(name: "GMSetzer", package: "GMSetzer"), or select
SetzerSyntax, SetzerParser, SetzerExtensions, SetzerHTML or SetzerAnalysis.
GitHub supplies source ZIP and tar.gz archives; no binary assets or registry
are required.
import GMSetzer
let html = try MarkdownHTML.render("# Hello\n\n- [x] Done",
parser: MarkdownParser(profile: .gfm))Existing lower-level parsing/rendering APIs remain available. Front matter
retains its escaped HTML fallback unless a caller explicitly omits it; math
preserves TeX without bundling a rendering engine.
Limits
Progressive output requires a complete parse and does not promise input
streaming, an interruptible parse, bounded peak memory or fixed device latency.
Native analysis is a three-rule subset, not a complete linter. Raw-HTML opt-ins
and hook output are caller trust boundaries. Historical benchmark ratios apply
to their recorded hosts/configurations; no general C-parity claim is made.
Further syntax, tree-processing conveniences and Markdown output are planned
in the roadmap, outside the 1.0 release scope.
GMSetzer v0.6.0
GMSetzer 0.6.0
Source-only preview of the standalone Swift Markdown library, adding M6
progressive HTML output to 0.5.0. Requires Swift 6.2 or later. APIs may change
before 1.0. This release uses the accepted M6 implementation; M7 speed and
hardening changes are reserved for 0.7 development.
New since 0.5.0
HTMLRenderer.preparecreates complete-document rendering context and
structural groups without rendering their contents eagerly.HTMLRenderPlan.groups,renderGroup(at:)andforEachGroupsupport
on-demand output, reverse-order requests and early stopping. Consumers
control scheduling and how long emitted strings are retained.- Groups preserve whole top-level lists, tables, fences and custom containers,
with snapshot-local ordinals, node indices and original UTF-8 source ranges. - Global links, anchors and extension context remain shared across groups.
FootnotesHTMLRenderer.preparepreserves numbering/backlinks and emits a
deferred footnote appendix; composed M5 rendering remains supported. - Explicit whole-document fallbacks cover allowed raw HTML, root hooks and
document-order hooks. Independent hooks can opt into structural groups. - Throwing checkpoints provide cancellation during emission between renderer
events. Stopping consumption leaves later groups/hooks unrendered.
All 652 CommonMark and 672 pinned GFM examples remain protected. Existing
full-string rendering and M5 APIs remain available. The six SwiftPM products
continue to have no runtime dependencies or Foundation requirement in the
library. Parser/native-provider result identity is 0.6.0.
Swift Package Manager
.package(url: "https://github.com/kerker00/GMSetzer.git", exact: "0.6.0")Add .product(name: "GMSetzer", package: "GMSetzer") to the consuming target.
The version pin becomes resolvable when the tag is published. GitHub supplies
source ZIP/tar.gz downloads; no application or binary build asset is uploaded.
Prepare and consume
let document = MarkdownParser(profile: .gfm).parse(source)
let renderer = HTMLRenderer(includeSourceRanges: true)
let plan = try renderer.prepare(document, maximumSourceBytesPerGroup: 32_768)
try plan.forEachGroup { group, html in
consume(html, sourceRange: group.sourceRange)
return true // false stops before rendering the next group
}Use plan.mode to inspect structural versus whole-document fallback behavior.
Groups belong to that plan's immutable snapshot; consumers retain their own
revision/configuration checks. Independent hook mode is a caller promise about
determinism, ordering and self-contained markup, not automatic hook analysis.
Scope and limitations
The complete Markdown document is parsed before a plan exists. This does not
stream Markdown parsing or provide incremental edits. Preparation and individual
literals/hooks remain synchronous. The grouping budget is a soft source-byte
target, not an HTML-byte, time or memory ceiling; giant blocks stay indivisible.
Plans retain the full source/tree/context. No general peak-memory reduction,
bounded single-block latency or consumer UI/device result is promised.
M6 acceptance and its measured-snapshot limits are documented in
M6Acceptance
and ProgressiveHTML.
Historical timings belong to that snapshot; this identity-only release
preparation makes no fresh performance claim. General parser optimization,
real-M5/hostile-input scaling, broader fuzzing/sanitizers and M8 API/DocC/1.0
work remain separate.
GMSetzer v0.5.0
GMSetzer 0.5.0
Source-only preview of the standalone Swift Markdown library, adding M5
extensions and editor-facing follow-ups to 0.4.0. Requires Swift 6.2 or later.
APIs may change before 1.0.
New since 0.4.0
- Opt-in raw YAML/TOML front matter with typed format/content access, exact
original bytes/ranges and independently selectable formats. - Named footnotes with parsed Markdown bodies, forward/repeated references,
first-call numbering, finite cyclic-note handling and composed HTML backlinks. - Opaque inline, dollar-display and
mathcode-fence TeX nodes. Callers choose
formula rendering through hooks; no TeX engine or JavaScript is bundled. - GitHub-style alerts and Obsidian-style callouts, including parsed Markdown
titles, type aliases, folding metadata and optional<details>HTML. - Original quote/list marker tokens with exact item ownership and continuation
prefixes, available only when syntax collection is enabled. - Optional English/German native finding/fix text lookup, structured heading
arguments and explicit caller-selected language/fallback behavior. - Prepared inline matchers, document/quote-start contexts and validated token
owner remapping for extensions that rebuild trees.
CommonMark 0.31.2 retains all 652 protected examples and the pinned GFM corpus
retains all 672. The six SwiftPM products still have no runtime dependencies:
GMSetzer, SetzerSyntax, SetzerParser, SetzerExtensions, SetzerHTML and
SetzerAnalysis.
Swift Package Manager
.package(url: "https://github.com/kerker00/GMSetzer.git", exact: "0.5.0")Add .product(name: "GMSetzer", package: "GMSetzer") to the consuming target.
The repository is public; HTTPS source access needs no GitHub authentication.
The tag is the package version. GitHub's ZIP/tar.gz downloads contain source
only; no application build or binary asset is uploaded.
Adopting the extensions
Strict CommonMark and GFM profiles remain unchanged. To enable an M5 feature,
both select its ExtensionConfiguration in a profile and supply its
implementation to MarkdownParser. Supply only the desired implementations.
Keep node indices/ranges with the returned snapshot: transforms can rebuild
the tree, and cached result identity now reports 0.5.0.
The umbrella product supplies FootnotesHTMLRenderer and
AdmonitionHTML.renderer. Math presentation and front-matter omission remain
explicit caller policies. Existing safe URL/raw-HTML settings and caller hook
trust boundaries continue to apply. Styling, themes and app adapters belong
to consumers.
Scope and limitations
These are documented extension grammars, not complete GitHub/Pandoc/Obsidian
compatibility. Front matter is not deserialised. Footnote continuation lines
require explicit indentation. Single-dollar math stays on one physical line;
formula typesetting needs a caller engine. Callout type identifiers are ASCII,
and nesting support is broader than GitHub's documented site policy. Native
analysis remains a small optional rule subset and keeps custom bodies opaque.
M5 functional acceptance is documented in
M5Acceptance.
Fresh selected-extension performance/allocation measurements, broader fuzzing,
minimum Apple runtime/device checks and consumer UI acceptance remain separate
M6/consumer work. This preview makes no new speed or app-integration claim.
GMSetzer v0.4.0
GMSetzer 0.4.0
First versioned preview of the standalone, MIT-licensed Swift Markdown library,
covering milestones M1–M4. Requires Swift 6.2 or later. APIs may change before 1.0.
Included
- CommonMark 0.31.2: all 652 specification examples pass by exact HTML.
- GitHub Flavored Markdown: all 672 pinned specification examples pass,
including tables, task lists, strikethrough, extended autolinks and tag filtering. - Original UTF-8 source ranges, optional syntax tokens, UTF-16/line/column
conversion and a document index with heading outline. - Configurable HTML rendering with safe defaults, source anchors and renderer hooks.
- Three opt-in native analysis rules with portable findings and suggested edits.
- Six Swift package products with no runtime dependencies:
GMSetzer,
SetzerSyntax,SetzerParser,SetzerExtensions,SetzerHTML,SetzerAnalysis.
Swift Package Manager
.package(url: "https://github.com/kerker00/GMSetzer.git", exact: "0.4.0")Add .product(name: "GMSetzer", package: "GMSetzer") to the consuming target.
The repository is public. Source downloads and Swift Package Manager access
over HTTPS do not require GitHub authentication.
Scope and limitations
This release distributes source only. GitHub provides ZIP and tar.gz archives;
there are no binary assets or application builds. Swift Package Manager fetches
the tagged Git repository and builds the library for the consumer's platform.
Footnotes, front matter, math, alerts and callouts remain planned for M5.
The native analysis rules are a documented subset, not a complete linter.
Analysis default messages are English. Block-quote and list marker syntax
tokens remain follow-up work. Apple minimum runtime/device verification and
new performance measurements are not established by CI; see the project plan
and existing validation records for their evidence and limits.