In a recent development, fast Rust drop-in replacement for Pandoc 3.13.15.3x to 49.7x the speed of Pandoc 3.13 on 1 MB inputs. One 9.26 MB stripped ARM64 binary.

Website · Playground · Benchmarks · Compatibility · Install · Integrations · Docs.

It has been revealed that weavon converts Markdown, HTML, Word, LaTeX, and other document formats. Run it as pandoc to use your existing scripts and filters in Pandoc 3.13 compatibility mode. Weavon matches 65,891 of 65,937 baseline test units (99.93%). The known differences list the limits. Weavon is an independent project under the MIT or Apache 2.0 licence.

On macOS and Linux, one line installs the weavon program into ~/.local/bin.

Industry observers note that add --as-pandoc to use Weavon as Pandoc right away. The installer then also makes ~/.local/bin/pandoc a link to Weavon, so each pandoc command runs Weavon in Pandoc 3.13 mode.

In a recent development, on Windows, run the installer in PowerShell with the first line. Use the second line in its place to also add a pandoc command.

In a recent development, the installers download the prebuilt program of the latest release from the release page and check its SHA-256 checksum before they install it. Prebuilt programs are available for macOS (arm64 and x86_64), Linux (x86_64 and arm64) and Windows (x86_64).

Homebrew installs from the Weavon tap on macOS and Linux, together with the shell completions for bash, zsh and fish.

Scoop installs from the Weavon bucket on Windows.

Cargo customers can download the same release archive with cargo binstall, or build the program from the Git repository with cargo install.

In a recent development, in GitHub Actions, one step installs Weavon on Linux, macOS and Windows runners. With as-pandoc: true, your existing Pandoc, Quarto and Make steps use Weavon with no other change.

The container image ghcr.io/weavon/weavon has no shell and no TeX, and it still writes PDF with the built-in engine.

After a Homebrew, Scoop or Cargo install, or after you unpack a release archive, one command turns on drop-in mode.

According to recent reports, the command makes a pandoc link to weavon in the folder of the weavon program. When that folder is not writable, it makes the link in ~/.local/bin instead (on Windows, in the folder that install.ps1 uses), and --dir PATH picks another folder. An unrelated pandoc program stays in place unless you add --force. weavon setup --unlink removes the link, but only when the link points to Weavon. Plain weavon setup prints the drop-in status and the commands for drop-in mode and shell completions.

A source build needs Rust 1.99 or later and a C compiler.

Weavon writes completion scripts for zsh, bash, fish and PowerShell.

Weavon takes the same arguments as Pandoc, so the commands you already know work as they are.

weavon init does not overwrite an existing weavon.yaml unless you add --force, and --dir PATH writes the file into another folder. weavon build needs an output folder in --output-dir DIR, and the output folder mirrors the input tree.

According to recent reports, start Weavon with the name pandoc and it runs in compat mode, which behaves as Pandoc 3.13. The first line of pandoc --version is then pandoc 3.13, and the second line names Weavon. Compat mode reads no configuration file and makes no network request that Pandoc does not make. Under any other name, the option --compat=pandoc-3.13 turns on the same mode.

We compare Weavon with Pandoc 3.13. The conformance row gives the v0.2.0 baseline result. The remaining rows describe the recorded test suites.

Recent findings suggest that A unit is equal when its output, its warnings and its exit code are equal to those of Pandoc. The section Differences from Pandoc lists each difference that a user can see.

In a recent development, median wall time in milliseconds on Apple Silicon ARM64 with macOS, on a quiet system. Text workloads use 1 MB inputs and docx-json uses a 106 KB compressed DOCX corpus. The suffix -nohl means syntax highlighting is off. N/A indicates that the comparison has no result.

Recent findings suggest that the stripped ARM64 dist binary is 9,256,784 bytes (9.26 MB, 8.83 MiB). It is 120,736 bytes smaller than the v0.1.0 binary in this comparison. On macOS it links only to /usr/lib/libSystem.B.dylib. See the full benchmark tables for peak memory and binary sizes.

In a recent development, weavon fits into the editors, build tools and pipelines you already use. Most of them need no change at all, because Weavon answers to the name pandoc. The integrations guide gives the full setup for each one.

The Python and Node.js packages both give a typed Pandoc AST and a walk function, so you can write filters in the host language.

Weavon supports these features of Pandoc 3.13.

It has been revealed that weavon has two modes. Compat mode is the drop-in Pandoc 3.13 that the section above describes, and the native features of this section are off in it. Native mode starts when you run the program as weavon. It accepts the same command line and adds the workflows below.

In a recent development, each native-only extension has the prefix x_, and Pandoc has no extension with this prefix. ADR 34 gives the design.

These commands show the native workflows.

Some data files of Pandoc have a licence that does not permit their distribution with Weavon, and some features are not complete yet. The table gives each difference that a user can see, and docs/ISSUES.md gives all known differences.

Weavon treats each input as untrusted. Its readers stop at limits instead of stopping the program with a panic. The Rust code forbids unsafe code outside two crates. The weavon-lua crate permits two audited calls to the Lua C interface, and the unchanged C sources of Lua 5.4.8 and LPeg 1.1.0 are compiled into the program. The C ABI crate, weavon-c, permits audited unsafe code only where it reads and writes C pointers.

Sources indicate that --sandbox restricts file and network access, as in Pandoc. The HTML writer is not a sanitizer, so raw HTML in the input goes to the output, as in Pandoc. SECURITY.md tells you how to report a vulnerability.

Weavon was built with heavy use of AI coding tools, so we do not describe it as a strict clean-room implementation.

In practice, the repository contains no Pandoc Haskell source code and no Pandoc test files, and project rules forbid reading Pandoc's Haskell source. Behavior is developed against the Pandoc manual, documented interfaces, and Pandoc 3.13 run as a black-box test oracle. Pandoc runs only in the test tools, and the weavon binary never calls it.

In a recent development, several companion libraries that Pandoc uses have permissive licences, and Weavon ports parts of them, including pandoc-types, doclayout, doctemplates, commonmark-hs, citeproc, skylighting-core, tagsoup, hslua, and Pandoc's BSD-3-Clause default templates. THIRD_PARTY_NOTICES.md lists each item and its licence. GPL-licensed Pandoc assets, such as reference Office documents and shell completion scripts, are excluded.

Industry observers note that docs/CONTRIBUTING.md gives the rules and the test tools. docs/README.md is the index of the documentation and the repository, and docs/ARCHITECTURE.md describes the workspace crates.

Weavon owes its design to John MacFarlane and the Pandoc contributors. They created Pandoc, designed the document model, format behavior, and command-line interface that Weavon targets, and authored the permissively licensed companion libraries (pandoc-types, doclayout, doctemplates, commonmark-hs, citeproc, skylighting, and emojis) as well as Pandoc's BSD-3-Clause default templates.

Weavon is an independent project and is not affiliated with or endorsed by John MacFarlane or the Pandoc project.

Industry observers note that weavon is available under the MIT licence or the Apache License 2.0, at your option. Third-party material keeps its own licence, and THIRD_PARTY_NOTICES.md lists each item.

📌 Read also:

→ Read original article