zigmark
WASM
zigmark
—
ms · marked.js
—
ms · speedup
—
×
Docs
GitHub
# zigmark: Markdown at the Speed of Zig 🚀 > **A CommonMark + GFM-compliant Markdown parser, written in Zig, compiled to WebAssembly.** > > - 652/652 CommonMark spec tests passing ✅ > - 24/24 GFM extension tests passing ✅ > - Three renderers: HTML, AST, AI > - Zero runtime dependencies > - Blazing fast — often faster than JS! > > _Edit this pane and watch the preview update in real-time. Switch renderers on the right!_ --- ## Headings # H1 Heading ## H2 Heading ### H3 Heading #### H4 Heading ##### H5 Heading ###### H6 Heading --- ## Lists - Unordered item 1 - Unordered item 2 - Nested item - Deeply nested 1. Ordered item 1 2. Ordered item 2 1. Sub-item 2. Sub-item --- ## Emphasis & Inline *Italic* _Italic_ **Bold** __Bold__ ***Bold Italic*** ~~Strikethrough~~ `Inline code` --- ## Links & Images [zigmark on GitHub](https://github.com/sc2in/zigmark)  --- ## Blockquotes > This is a blockquote. > > Nested blockquote! --- ## Code Blocks ```zig const zigmark = @import("zigmark"); var doc = try parser.parseMarkdown(allocator, input); const html = try zigmark.HTMLRenderer.render(allocator, doc); ``` --- ## Frontmatter (YAML & TOML) ```yaml title: Zigmark Demo author: Your Name ``` ```toml tags = ["zig", "markdown", "wasm"] ``` --- ## Footnotes ```markdown Here is a footnote reference[^1]. [^1]: This is the footnote content. ``` ## GFM Extensions ### Tables | Name | Role | Score | | ------- | --------- | ----: | | Alice | Engineer | 42 | | Bob | Designer | 37 | | Charlie | Manager | 51 | Alignment: left (`:---`), center (`:---:`), right (`---:`). | Left | Center | Right | | :------ | :-----: | -----: | | apples | bananas | 1.0000 | | oranges | grapes | 0.5000 | ### Task Lists - [x] Implement CommonMark parser - [x] Add GFM extensions - [ ] World domination ### Autolinks Bare URLs and emails are linked automatically: Visit www.example.com or https://ziglang.org or email contact@sc2.in --- ## Raw HTML ```html
Raw HTML block!
Bold
Italic
``` ## Spec Compliance All
652/652
CommonMark tests pass and all
24/24
GFM extension tests pass. See the
README
for a full breakdown. --- ## About zigmark is a Markdown parser and renderer written in Zig, designed for speed, correctness, and embeddability. It supports HTML, AST, and AI-friendly output modes. Try switching renderers! --- *Edit this pane and watch the preview update in real-time. Use the dropdown to switch output renderers!*
Renderer:
HTML
AST
AI
Copy Output