Install Weavon

Run one line to install v0.1.0, and add --as-pandoc to link the pandoc command.

macOS and Linux

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

Downloads v0.1.0, verifies SHA-256, and installs to ~/.local/bin.

Drop-in Pandoc

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

Links pandoc to Weavon so existing scripts run unchanged.

Windows

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

Run in PowerShell. Verifies SHA-256 and installs weavon.exe.

Cargo

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

Downloads the prebuilt binary through cargo-binstall.

Command line

  1. Install Weavon

    Run on macOS or Linux, or select Windows above.

    curl -fsSL https://weavon.github.io/weavon/install.sh | sh
  2. Check the binary

    Print the version.

    weavon --version
  3. Verify the pandoc link

    The first line is pandoc 3.13, and the second line names Weavon.

    pandoc --version

Package managers

Homebrew

Installs from the Weavon tap with bash, zsh, and fish completions.

brew install weavon/tap/weavon

Scoop

Add the Weavon bucket once, then install on Windows.

scoop bucket add weavon https://github.com/weavon/scoop-bucket
scoop install weavon/weavon

Cargo

Downloads the prebuilt binary. Use cargo install --locked to build from source.

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

CI and editors

GitHub Actions

Installs Weavon on each runner. as-pandoc: true routes Pandoc steps to it.

- uses: weavon/weavon@v0.1.0
  with:
    as-pandoc: true

Docker

Writes PDF with no TeX. Mount your folder at /data.

docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/data" ghcr.io/weavon/weavon notes.md -o notes.pdf --pdf-engine=embedded

pre-commit

Runs weavon from PATH with no Python or Node setup.

repos:
  - repo: https://github.com/weavon/weavon
    rev: v0.1.0
    hooks:
      - id: weavon-lint
      - id: weavon-fmt

VS Code

Converts files, exports PDF with no TeX, and reports lint findings in Problems.

cd plugins/vscode
npx @vscode/vsce package
code --install-extension weavon-0.1.0.vsix

Neovim

Adds :WeavonConvert, :WeavonPdf, :WeavonLint, and :WeavonDiff via lazy.nvim.

{
  "weavon/weavon",
  config = function(plugin)
    vim.opt.rtp:append(plugin.dir .. "/plugins/weavon.nvim")
    require("weavon").setup({})
  end,
}

Bindings

Python

Installs prebuilt wheels with bundled libweavon_c and a pypandoc compat module.

pip install weavon

Node.js

Installs bundled WebAssembly with zero npm dependencies on Node.js 22 or later.

npm install weavon

Prebuilt binaries

  • macOS on arm64 and x86_64
  • Linux on x86_64 and arm64
  • Windows on x86_64
  • SHA-256 verification before install

Installers download from the v0.1.0 release. Run sh install.sh --help for options.

Build from source

Requires Rust 1.99 or later and a C compiler for bundled Lua 5.4.8 and LPeg 1.1.0.

git clone https://github.com/weavon/weavon
cd weavon
cargo build --release -p weavon-cli

Shell completions

Generate completion scripts for zsh, bash, fish, and PowerShell.

weavon completions zsh > "${fpath[1]}/_weavon"

Common questions

Which platforms have prebuilt Weavon binaries?

The v0.1.0 release provides binaries for macOS (arm64 and x86_64), Linux (x86_64 and arm64), and Windows (x86_64). Installers detect your platform automatically.

What do I need to build Weavon from source?

You need Rust 1.99 or later and a C compiler, which compiles the bundled Lua 5.4.8 and LPeg 1.1.0 C sources.

How do I install the Python package?

Run pip install weavon. Prebuilt wheels bundle libweavon_c for macOS, Linux, and Windows with no Rust toolchain needed.

How do I install the Node package?

Run npm install weavon on Node.js 22 or later. The package bundles weavon_wasm.wasm with zero npm dependencies and full TypeScript types.

How do I uninstall Weavon?

Delete the weavon binary and the pandoc symlink if you created one, or run cargo uninstall weavon-cli for Cargo installs.