Weavon vs Pandoc: Which Converter Should Run Your Notes?

2026-12-05
Brian

Subscribe
Get New Posts by Email
New RepoSquare posts in your inbox: comparisons, setup guides and explainers on open-source tools and AI coding agents. No spam, and you can unsubscribe anytime.

Partly tested. We ran the parts that show commands and output. The rest comes from the project’s docs, and the post says where.

The build script still said pandoc. The note was markdown, and the PDF step stopped because TeX wasn’t installed. Pandoc is the program that usually converts one document format into another, and it hands PDFs to TeX to draw the page. Weavon is a newer converter that takes the same kind of command and writes the PDF without calling TeX.

Weavon vs Pandoc comes down to one split. I’d move the batch conversion to Weavon. I’d keep Pandoc wherever a citation style or a full TeX template decides what the file looks like.

Illustration of one document passing through a converter and coming out as a web page and a document file

What Weavon Does

Mind map for Weavon vs Pandoc: 47 ms vs 1.68 s on a 1 MB file, 13.7 MB vs 156 MB program size, PDF without TeX, MathML vs styled formula, keep Pandoc for citation styles and full LaTeX templates

Weavon is a converter. You give it a file in one format and it writes another, for example a markdown note in and an HTML page, a Word file or a PDF out. The project lives at github.com/weavon/weavon, and Pandoc’s manual is at pandoc.org.

Diagram of one markdown note feeding a converter that writes web pages and a document file: headings, table, checklist, code block, formula and link

I pointed both programs at one short note. The heading, bold word, italic word, euro sign, link, nested list, table and a short code block all survived in both HTML files. The formula didn’t. Weavon wrote it as MathML, which is a formula stored as structure a browser can draw. Pandoc wrote it as styled text inside a span. The meaning is the same and the markup is different, so a script that compares the two files byte for byte will fail on that note.

Weavon vs Pandoc on a 1 MB File

On a markdown file of 1,039,886 bytes with ordinary paragraphs only, the two HTML files came out identical. Weavon’s fastest run took 47 milliseconds. Pandoc’s fastest took 1,676 milliseconds, or 1.68 seconds. That’s about 36 times faster, not 50.

Weavon’s first run on that file took 79 milliseconds, then 47 and 49. Pandoc took 2.20 seconds, then 2.15, then 1.68. I use the fastest of each so a cold start doesn’t pad the ratio, and even Weavon’s slowest run was far under Pandoc’s fastest.

A tiny note tells a different story, because starting the program costs more than the conversion. Weavon finished it in about 4 to 7 milliseconds across five runs. Pandoc took about 20 milliseconds once and 74 to 83 milliseconds on the other four. If your file is a paragraph you won’t feel a 36 times gap. You’ll feel it at about a megabyte, or when a script converts a whole folder.

The programs on disk differ too. The Linux build of Weavon I ran was 13,695,232 bytes, about 13.7 MB. The Pandoc file was 163,589,968 bytes, about 156 MB. The project’s figure near 9 MB is a smaller Mac build, so on Linux budget for 13.7 MB.

Bar chart: Weavon 47 ms vs Pandoc 1.68 s on a 1,039,886 byte markdown file, and Weavon 13.7 MB vs Pandoc 156 MB on the same Linux machine
ItemWeavonPandoc
1 MB markdown to HTML, fastest run47 ms1.68 s
HTML bytes on that fileIdentical to PandocIdentical to Weavon
Program size I measured (Linux)13.7 MB156 MB
PDF with no TeX installedA 21,381 byte PDFStopped: pdflatex not found
Formula in the short HTML fileMathMLStyled text

The Pandoc I timed was newer than the Pandoc 3.13 line Weavon says it matches. A difference against a newer Pandoc isn’t, by itself, a failed match against 3.13. The identical 1 MB HTML is the result I can stand behind, because both programs wrote it on the same machine.

Step 1: Install Weavon Without Replacing Pandoc

Download the archive for your machine from the project’s releases, check the checksum, and run the weavon file inside it. A checksum is a fingerprint of the download. If the one you compute matches the one published next to it, the file wasn’t swapped on the way.

The fingerprint on the Linux archive matched. Then I ran the version check:

weavon --version

It printed 0.2.0 and said it was compatible with Pandoc 3.13. The project also documents a one-line installer, a Homebrew tap on Mac and Linux, and a Scoop bucket on Windows. I didn’t run the installer, and I didn’t replace the pandoc command. Every timing above is weavon called by its own name, next to a separate Pandoc program.

If weavon --version prints nothing, you probably unpacked the archive for the wrong machine, or the file isn’t marked as something the system may run.

Step 2: Make a PDF From Markdown Without TeX

Pass the embedded engine and TeX doesn’t have to be installed:

weavon note.md -o note.pdf --pdf-engine=embedded

Pandoc’s normal PDF path calls a LaTeX engine, and the usual one is pdflatex. On this machine that call failed in one line, pdflatex not found, and no PDF was written. Weavon’s built-in engine wrote the file in about 17 milliseconds, twice. It was a real PDF, version 1.7, 21,381 bytes. The title stored in the file was the note’s heading, a link inside it pointed at the address from the note, and the formula was stored with the equation as its text alternative.

Weavon builds a 21,381 byte PDF 1.7 with --pdf-engine=embedded in about 17 ms; Pandoc stops with pdflatex not found and writes no file

I didn’t open that PDF in a page viewer, so I won’t claim the margins look like a journal. I will claim it’s a real PDF that carries the title, the link and the formula, and that Pandoc produced nothing until a TeX engine exists.

The embedded engine only understands a subset of LaTeX. A paper that needs a document class it doesn’t have still wants a real TeX install, and that’s a writing setup, not a converter swap. Oleafly vs Overleaf covers keeping that paper on your own computer.

Is Weavon a Drop-In Replacement for Pandoc?

For plain markdown to HTML on the 1 MB file, yes, because the bytes matched. For the short note with a formula, no, because the HTML differed. For Word styles, citation styles and EPUB styles, the project says the bytes differ because it ships its own defaults instead of Pandoc’s.

A citation style is the rule that turns a source list into “Author, year” or a numbered note. Pass --csl with the style file you already trust, and --reference-doc with the Word reference file you already trust. I didn’t run a citation test, so I won’t invent a match.

Before you flip a script, convert one real file with weavon by name and compare the two outputs:

pandoc note.md -o a.html
weavon note.md -o b.html
diff a.html b.html

One sample is enough to catch a formula, a caption or a missing style. The project documents weavon setup --as-pandoc for the second step, which makes a pandoc name that runs Weavon in a compatibility mode. I stopped before that on purpose so the timings weren’t mixed with a renamed binary.

Put one more check in the script itself: print the output path and its byte size. A command that exits cleanly and writes a zero-byte file is a failed conversion. The 21,381 byte PDF was the check I used.

Will the Word File Look the Same?

Not by default. Weavon writes its own Word styles, so pass --reference-doc with the reference file you already use and then look at the result. A copy that stays in Word can keep unchanged package parts, while a conversion that changes the document can drop features only Word understands. Open the file and don’t trust the exit code alone.

When to Keep Pandoc

Keep Pandoc when the file needs a citation look you haven’t supplied, a full LaTeX template, or a scanned PDF read. Weavon stops with an error at its own limits on nesting, input size, table size and archive size, where Pandoc will try to use the memory instead. For a normal note that doesn’t matter. For a huge or hostile file the stop is a feature, and you should know it’s there before a nightly job dies on one bad upload.

A scanned PDF is a picture of text, not text, and Weavon’s reader wants a separate text-from-image command for that page. Editing the Word file in a writer, or building slides as shapes, is also a different job that a converter won’t become. If the page has to stay editable in Word, read WordCraft vs LibreOffice. If an agent has to build the Office file instead of converting a note, OfficeCLI is the one to look at. And if your Pandoc call lives inside a Claude Code workflow, Claude Code HTML vs Markdown shows one such script.

I’d put Weavon on the machine that converts notes all day and leave Pandoc on the machine that still has a paper template. The speed is real on a long plain file, and so is the PDF without TeX. The byte-for-byte match holds for the file I checked, not for every flag you already pass.

Get New Posts by Email
New RepoSquare posts in your inbox: comparisons, setup guides and explainers on open-source tools and AI coding agents. No spam, and you can unsubscribe anytime.

Leave a comment