Skip to content

SwiftMD 1.1.0

Choose a tag to compare

@ThorFuchs ThorFuchs released this 20 Nov 11:53
· 21 commits to main since this release
2736190

Markdown mathematics

SwiftMD 1.1.0 updates SwiftGFM to 1.1.0 and prepares the opt-in Markdown mathematics profile distributed by Swift-MD-Adapters 1.2.0. Inline $...$ and display $$ blocks are rendered with KaTeX to embedded MathML. Existing math fences remain supported. Enable the profile explicitly with recognizeMath: true or CLI --markdown-math; the standard SwiftGFM-compatible Core path remains unchanged.

The adapter mirror also retains the experimental DOCX projection. SwiftHTML 0.1.1 supplies the optional HTML backend. JavaScriptCore is used on Apple platforms; Linux requires a trusted Node executable. The generated MathML and SVG do not require JavaScript in the viewing page.

The mathematics profile excludes code, table cells and image descriptions, and rejects unsafe raw HTML, NUL and unclosed display blocks. Renderer failures preserve escaped input with diagnostics. See the math profile, security contract, and third-party notices. No general HTML or SVG sanitizer is claimed.