Every document. One Rust binary.
Pandoc 3.13 output up to 46x faster, with native PDF, diffs, and chunks.
Six workflows, zero extra tools.
Embedded PDF 1.7
weavon report.md --pdf-engine=embedded -o report.pdf# Quarterly report
## Summary
| Region | Q3 | Q4 |
|--------|-----|-----|
| North | 410 | 452 |
| South | 388 | 437 |
## Notes
Figures include renewals.- 1 Summary
- 2 Notes
No TeX Live. Deterministic with SOURCE_DATE_EPOCH.
GuideWord redline
weavon diff contract-v1.docx contract-v2.docx --author "Legal" -o redline.docx- LLegalInserted 45 days
- LLegalDeleted 30 days
- LLegalInserted written
- LLegalDeleted all
Native tracked changes in DOCX, PDF, HTML, or JSON.
GuideRAG JSONL
weavon chunk handbook.docx --max-tokens 512 -o chunks.jsonl- HandbookLeaveParental leave391 tokens, blocks 4 to 9
- HandbookLeaveSick leave276 tokens, blocks 9 to 13
- HandbookTravel488 tokens, blocks 13 to 21
{
"index": 0,
"heading_path": ["Handbook", "Leave", "Parental leave"],
"markdown": "## Parental leave\n\nEach parent gets ...",
"token_estimate": 391,
"char_count": 1630,
"block_start": 4,
"block_end": 9,
"metadata": {"title": "Handbook"}
}Split at headings, with the heading path on each chunk.
GuideParallel build
weavon build docs/ --output-dir dist -j 8- job 1
intro.md - job 2
install.md - job 3
api.rst - job 4
guide.tex - job 5
faq.md - job 6
notes.ipynb - job 7
spec.docx - job 8
changes.org
8 of 8 written to dist
Whole folders in parallel, with watch mode rebuilds.
GuideSARIF lint
weavon lint docs/*.md --diagnostics=sarif > lint.sarif# Install guide### RequirementsRead [](https://weavon.github.io) first.
3:5W001heading level skips from H1 to H3: "Requirements"5:5W002the image setup.png has no alternative text7:7W003the link to https://weavon.github.io has no text
10 accessibility and DocOps rules in SARIF 2.1.0.
GuideSVG diagrams
weavon spec.md -f markdown+x_diagrams -o spec.html```mermaid
flowchart LR
A[Markdown] --> B[Weavon]
B --> C[HTML]
B --> D[PDF]
```Mermaid, Graphviz DOT, and D2 to inline SVG.
Guide52 readers, 77 writers, one core.
One Lua filter works for every format.
52 readers
- Markdown
- Word DOCX
- LaTeX
- HTML
- EPUB
- Jupyter
- and 46 more
- Document modelPandoc AST
- FiltersLua 5.4 + LPeg
- CitationsCSL 1.0.2
77 writers
- HTML
- Word DOCX
- LaTeX
- EPUB
- PowerPoint
- Typst
- and 71 more
Faster than Pandoc and every alternative we measured.
Same bytes as Pandoc 3.13 in all 11 cases.
Weavon converts 1 MB of Markdown to HTML 42.2x faster than Pandoc 3.13.
- Weavon 0.1.053.6 msExact
- Carta 0.0.1677.7 msDiffers
- ferrodoc 1.0.1192.7 msDiffers
- Pandoc 3.132,264.4 msReference
Apple M1. 21 interleaved runs for each Rust tool and 3 for Pandoc 3.13.
All benchmarksChecked unit by unit.
Measured against Pandoc 3.13 itself.
- 65,891 / 65,937
- Conformance units
- 690 / 690
- Real documents
- 468 / 468
- Lua API names
- 194 / 194
- Highlight languages
- 2,228 / 2,231
- Pandoc test suite
50 of 52 readers and 75 of 77 writers pass every test. 46 units differ on purpose, with 0 regressions.
Full compatibility reportDrop in where Pandoc runs
- Same commandInstall with
--as-pandocand keep your scripts. - Lua filtersYour Pandoc filters run on Lua 5.4.
- Python and Node
pip install weavonornpm install weavon - WebAssemblyA 1.86 MiB gzipped core for the browser.
Common questions.
What is Weavon?
Weavon is a clean-room document converter in Rust compatible with Pandoc 3.13. It is free under the MIT licence or Apache License 2.0, and is not affiliated with the Pandoc project.
Can Weavon replace Pandoc in existing scripts?
Yes. Run it as pandoc or pass --compat=pandoc-3.13, and 65,891 of 65,937 conformance units match Pandoc 3.13 output, warnings, and exit codes.
How fast is Weavon compared with Pandoc?
On 1 MB inputs on a quiet Apple M1, Weavon is 11.3 to 46.1 times faster than Pandoc 3.13 (16.8 to 46.1 times on conversions). Cold start takes 2.65 ms compared with 29.94 ms for Pandoc.
Does Weavon need TeX to write a PDF?
No. In native mode, --pdf-engine=embedded writes PDF 1.7 with no TeX installation, for Latin text in the WinAnsi character set.
Where does the output differ from Pandoc?
46 conformance units differ on purpose because of GPL data files or oracle crashes, and so do 15 units of the full server matrix. Weavon ships its own citation style, office styles, and EPUB stylesheet.




