Sulat.com / Writing on AISunday, December 6, 2026
Enter →
Developer Tools/6 December 2026

Weavon is a Rust drop-in replacement for Pandoc

Weavon is a Rust converter that runs as pandoc. On a 1 MB manual it was 16 to 34 times faster than Pandoc 3.13, and three of eight outputs matched byte for byte.

3D Weavon logo with documents feeding into a small compiled binary, showing the Rust Pandoc replacement
Illustration: Sulat, featuring the Weavon logo

At a glance

  • Weavon 0.2.0 is a Rust converter that runs as pandoc and aims to match Pandoc 3.13.
  • On a 1 MB manual it was 16 to 34 times faster and used 5 to 15 times less memory.
  • Three of eight outputs matched Pandoc byte for byte, and highlighted code, Word styles and code inside Word lists differ.
  • It adds a PDF engine with no TeX, Word redlines, chunking for retrieval and an MCP server.
  • The Linux binary is 13.7 MB against 168 MB for Pandoc.

Weavon is a document converter written in Rust that answers to the name pandoc. I installed version 0.2.0, ran it against the official Pandoc 3.13 on the same machine, and compared every output byte for byte. On a 1 MB manual it was 16 to 34 times faster and used 5 to 15 times less memory. Three of the eight outputs matched Pandoc exactly, and the other five differ in ways I can show you.

What it is

Pandoc turns documents from one format into another: Markdown to HTML, Word to Markdown, Markdown to PDF and dozens more. It’s written in Haskell and licensed under the GPL. Weavon is a from-scratch rewrite in Rust, published under MIT or Apache-2.0 at github.com/weavon/weavon, and it aims to reproduce Pandoc 3.13 exactly.

Weavon’s README says it was built with heavy use of AI coding tools, that the repository contains no Pandoc source or test files, and that it uses Pandoc 3.13 only as a black-box reference to compare against. It also says Weavon isn’t affiliated with John MacFarlane or the Pandoc project. Because Pandoc’s default Word styles, citation style and shell completions are GPL, Weavon writes its own.

Diagram showing Weavon running as pandoc through a symlink so existing scripts keep working unchanged
Name the binary pandoc and your existing scripts run on Weavon.

It has two modes. Run it as pandoc, through a symlink or weavon setup --as-pandoc, and it behaves as Pandoc 3.13. Run it as weavon and you get the native command set, which adds things Pandoc doesn’t have. Those are an embedded PDF engine that needs no TeX, a document diff, chunking for retrieval pipelines, a linter and formatter, a live preview and an MCP server. It also runs Lua 5.4 and WASM filters and ships Python and Node bindings.

Speed and memory

The test file is a 1 MB Markdown document built from Pandoc’s own manual. Each conversion ran seven times after a warm-up run, and I kept the median time and the peak memory. Weavon ran in its Pandoc-compatible mode, so both tools got identical arguments.

Code
ln -s weavon pandoc
./pandoc input-1mb.md -f markdown -t html -o out.html
Terminal showing the same Markdown to HTML conversion timed with Pandoc 3.13 and with Weavon
Same command, same file, two binaries.
Pandoc and Weavon convert the same manual, one after the other.
ConversionWeavon (ms)Pandoc (ms)FasterWeavon memory (MiB)Pandoc memory (MiB)Identical output
Markdown to HTML, no highlighting63.32,062.832.6x23.5204.2Yes
Markdown to HTML, highlighted94.62,753.629.1x24.1370.3No
Markdown to HTML, standalone139.92,775.519.8x68.2344.6No
Markdown to LaTeX84.22,332.327.7x24.2362.2No
Markdown to JSON54.81,387.725.3x23.5173.3Yes
Markdown to Word160.72,510.915.6x39.8369.8No
Median of seven runs. Memory is peak resident size.

Word to JSON ran 33.8 times faster and HTML to JSON 29.5 times faster. Weavon says it’s 15.3 to 49.7 times faster on Apple Silicon, and my 15.6 to 33.8 on Linux sits inside that range. The 49.7 is Markdown to HTML with highlighting off. I got 32.6 for that case.

Bar chart of Weavon against Pandoc 3.13 on a 1 MB Markdown to HTML run, time and peak memory
On the same 1 MB file Weavon finished in a fraction of the time and memory.

The binary is smaller too. The Linux build of Weavon is 13.7 MB and the official Pandoc 3.13 binary is 168 MB, about 12 times larger. Weavon lists the macOS build at 9.26 MB.

Infographic comparing the Weavon binary size with the Pandoc binary size
One small binary replaces a 168 MB one.

How close to Pandoc

Weavon says it passes 65,891 of 65,937 conformance units, or 99.93%. That leaves 46 units that differ, by its own count. I checked the output of every job above with cmp, and the results are in the diagram.

Checklist of which Weavon outputs matched Pandoc byte for byte and the two that differed
Three outputs matched exactly and the rest differ in small ways.

Markdown to JSON, HTML to JSON and Markdown to HTML without highlighting are identical to the byte. The JSON output is Pandoc’s full document tree, so those matches mean the reader parsed the manual the same way Pandoc did. A Lua filter that turns bold text into small caps and a citeproc run with a BibTeX file also gave the same output as Pandoc.

Highlighted code is where HTML and LaTeX stop matching. The files differ by 72 and 78 bytes, and all of it sits in three code blocks, two YAML and one Lua, where the two tools split the highlighting into different tokens.

Terminal diff of highlighted HTML where Weavon and Pandoc tokenise a code block differently
Highlighted code blocks are where the HTML stopped matching.

Word output differs for a different reason. Weavon writes its own default styles, so the file is 450,191 bytes against Pandoc’s 461,110.

The Word reader has one real difference. A code block inside a list item comes back as a code block in Pandoc and as a plain paragraph in Weavon. I reduced it to a small file, core.docx, to be sure it wasn’t the manual.

What Pandoc doesn’t do

The native commands are the reason to run it as weavon.

PDF with no TeX

Pandoc’s default PDF route hands the job to a TeX install. This machine has no TeX, and Weavon wrote a PDF anyway.

Code
weavon notes.md -o notes.pdf --pdf-engine=embedded
A PDF page produced by Weavon's embedded engine on a machine with no TeX installed
A PDF straight from Markdown, with no TeX on the machine.

Redlines

weavon diff compares two documents block by block and word by word. I gave it two Word files that differ by one figure, and it reported that five blocks were unchanged and two modified, with two words added and two removed. The output can be CriticMarkup, HTML, Markdown, JSON, PDF or a Word file with real tracked changes.

Code
weavon diff v1.docx v2.docx --stats

In CriticMarkup the changed figure shows as {~~12%~>15%~~}.

Chunks, MCP and a live preview

weavon chunk splits a document into JSON lines for retrieval, each with its heading path and a token estimate. The defaults are 512 tokens per chunk with 64 tokens of overlap. My two-section test note came out as two chunks, with paths Results and Results / Next steps.

Code
weavon chunk notes.md

weavon mcp starts an MCP server. I connected to it over stdio and it listed eight tools: convert, extract, chunk, diff, lint, inspect, fmt and resolve_citations.

weavon preview serves a live page that updates each time the file changes. I recorded it in a real browser while editing a Markdown file.

The preview page updates as the Markdown file is saved.

The Python package installed from pip and reported 0.2.0, and the Node package from npm loaded and exposes a client and a document type.

Infographic of what Weavon adds: PDF with no TeX, Word redlines, chunks for RAG and tools for agents
Pandoc mode, plus four extras.

Where it fits

It suits anything that calls Pandoc often, such as a build step, a docs pipeline or a server converting uploads, because the time drops from seconds to milliseconds and the memory with it. It also suits anyone who needs a converter inside a closed-source product, since the licence is permissive and the binary is small.

It doesn’t suit work where output has to match Pandoc exactly. Highlighted code and Word styles differ today, and the Word reader turns code in a list into a plain paragraph. Run your own documents through cmp before you swap it in.

Weavon’s README compares it with Carta 0.0.16 and ferrodoc 1.0.1, two other Pandoc alternatives. I didn’t run those.

How I tested

Everything ran on one Linux VM with 4 cores, 16 GB RAM and Ubuntu 24. I compared Weavon 0.2.0 with the official Pandoc 3.13 Linux binary. Peak memory is what the operating system reports for each process.