Every document. One Rust binary.

Pandoc 3.13 output up to 46x faster, with native PDF, diffs, and chunks.

macOS and Linux

curl -fsSL https://weavon.github.io/weavon/install.sh | sh

Drop-in Pandoc

curl -fsSL https://weavon.github.io/weavon/install.sh | sh -s -- --as-pandoc

Windows

irm https://weavon.github.io/weavon/install.ps1 | iex

Cargo

cargo binstall --git https://github.com/weavon/weavon weavon-cli

Six workflows, zero extra tools.

Embedded PDF 1.7

weavon report.md --pdf-engine=embedded -o report.pdf
report.md
# Quarterly report

## Summary

| Region | Q3  | Q4  |
|--------|-----|-----|
| North  | 410 | 452 |
| South  | 388 | 437 |

## Notes

Figures include renewals.
report.pdf, PDF 1.7
  1. 1 Summary
  2. 2 Notes
Quarterly report1 SummaryRegionQ3Q4North410452South3884372 NotesFigures include renewals.1

No TeX Live. Deterministic with SOURCE_DATE_EPOCH.

Guide

Word redline

weavon diff contract-v1.docx contract-v2.docx --author "Legal" -o redline.docx
redline.docx
Service agreementPayment is due within 30 days 45 days of the invoice date.Either party may end this agreement with written notice.The supplier keeps all rights to its own tools.
  • LLegalInserted 45 days
  • LLegalDeleted 30 days
  • LLegalInserted written
  • LLegalDeleted all

Native tracked changes in DOCX, PDF, HTML, or JSON.

Guide

RAG JSONL

weavon chunk handbook.docx --max-tokens 512 -o chunks.jsonl
handbook.docx
  1. HandbookLeaveParental leave391 tokens, blocks 4 to 9
  2. HandbookLeaveSick leave276 tokens, blocks 9 to 13
  3. HandbookTravel488 tokens, blocks 13 to 21
Chunk 0 record, markdown excerpt
{
  "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.

Guide

Parallel build

weavon build docs/ --output-dir dist -j 8
  1. job 1intro.md
  2. job 2install.md
  3. job 3api.rst
  4. job 4guide.tex
  5. job 5faq.md
  6. job 6notes.ipynb
  7. job 7spec.docx
  8. job 8changes.org

8 of 8 written to dist

Whole folders in parallel, with watch mode rebuilds.

Guide

SARIF lint

weavon lint docs/*.md --diagnostics=sarif > lint.sarif
guide.md
  1. # Install guide
  2. ### Requirements
  3. ![](setup.png)
  4. Read [](https://weavon.github.io) first.
lint.sarif, SARIF 2.1.0
  1. 3:5W001heading level skips from H1 to H3: "Requirements"
  2. 5:5W002the image setup.png has no alternative text
  3. 7:7W003the link to https://weavon.github.io has no text

10 accessibility and DocOps rules in SARIF 2.1.0.

Guide

SVG diagrams

weavon spec.md -f markdown+x_diagrams -o spec.html
spec.md
```mermaid
flowchart LR
  A[Markdown] --> B[Weavon]
  B --> C[HTML]
  B --> D[PDF]
```
spec.html, inline SVG
MarkdownWeavonHTMLPDF

Mermaid, Graphviz DOT, and D2 to inline SVG.

Guide

52 readers, 77 writers, one core.

One Lua filter works for every format.

52 readers

  • Markdown
  • Word DOCX
  • LaTeX
  • HTML
  • EPUB
  • Jupyter
  • and 46 more
Weavon core9.38 MB binary
  • 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.

  1. Weavon 0.1.053.6 msExact
  2. Carta 0.0.1677.7 msDiffers
  3. ferrodoc 1.0.1192.7 msDiffers
  4. Pandoc 3.132,264.4 msReference

Apple M1. 21 interleaved runs for each Rust tool and 3 for Pandoc 3.13.

All benchmarks

Checked unit by unit.

Measured against Pandoc 3.13 itself.

99.93%of conformance units equal
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 report

Drop in where Pandoc runs

  • Same commandInstall with --as-pandoc and keep your scripts.
  • Lua filtersYour Pandoc filters run on Lua 5.4.
  • Python and Nodepip install weavon or npm 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.