Native workflows for daily document work

Weavon keeps the Pandoc 3.13 command line and adds project files, batch builds, semantic diff, lint, and embedded PDF.

Keep every Pandoc command

Weavon reads the same 52 input formats and writes the same 77 output formats. Compat mode turns every native feature off so your output stays untouched.

  • Lua 5.4 and JSON filters
  • Templates and defaults files
  • --citeproc and CSL 1.0.2 styles
  • 99.93% of conformance units equal

Built-in workflows beyond single files

  • Project files

    weavon.yaml

    Named profiles pick a build target with --profile NAME.

  • Batch builds

    weavon build docs/ --output-dir dist -j N

    Converts folders in parallel and shares parsed bibliographies.

  • Live rebuilds

    weavon watch

    Converts again whenever an input or included file changes.

  • Semantic diff

    weavon diff OLD NEW

    Writes Word tracked changes, CriticMarkup, HTML, JSON, or PDF redlines.

  • Static site dialects

    -f obsidian

    Reads Obsidian notes and writes Docusaurus, MkDocs, Hugo, Starlight, and MyST.

  • Helpful errors

    --diagnostics=sarif

    Suggests the closest option or format when a flag has a typo.

Quality checks and authoring tools

weavon lint
Checks 10 accessibility and DocOps rules and writes SARIF 2.1.0.
weavon fmt
Formats Markdown and refuses any change to the document tree.
x_crossref
Numbers figures, tables, equations, listings, and sections.
x_diagrams
Draws Mermaid, Graphviz DOT, and D2 as SVG with no browser.
--resolve-citations=lockfile
Resolves DOI, arXiv, PMID, and ISBN keys offline.
SOURCE_DATE_EPOCH
Makes DOCX, EPUB, ODT, PPTX, and embedded PDF output byte-identical.

Safer with untrusted input

Readers stop at depth, size, table, and archive limits and never panic. --sandbox restricts file and network access, as in Pandoc.

Try native mode

  1. Install Weavon

    Install the prebuilt command-line program with the one-line installer.

    curl -fsSL https://weavon.github.io/weavon/install.sh | sh
  2. Convert a file as with Pandoc

    Give the same options that you give to Pandoc.

    weavon -f markdown -t html input.md -o output.html
  3. Compare two versions

    Write the changes between two documents as Word tracked changes.

    weavon diff contract-v1.docx contract-v2.docx --author "Legal" -o redline.docx
  4. Check documents in CI

    Write a SARIF 2.1.0 log that code review tools can show.

    weavon lint docs/*.md --diagnostics=sarif > lint.sarif

Common questions

What does native mode add to the Pandoc command line?

Native mode adds weavon.yaml profiles, parallel batch builds, weavon watch, semantic diff, lint with SARIF output, RAG chunks, pure-Rust diagrams, and an embedded PDF engine.

Do native features change Pandoc compatibility?

No, because native features switch off in compat mode. Run the binary as pandoc or pass --compat=pandoc-3.13 to match Pandoc 3.13.

What is a native extension?

A native extension uses the prefix x_, such as x_crossref or x_diagrams. Pandoc has no extension with that prefix, so names never conflict.

Can Weavon draw diagrams without a browser?

Yes. The x_diagrams extension renders Mermaid flowcharts and sequence diagrams, Graphviz DOT, and D2 as SVG in pure Rust.

How does Weavon check documents in CI?

weavon lint checks 10 accessibility and DocOps rules and writes SARIF 2.1.0. weavon fmt --check fails when a Markdown file needs formatting.

Is Weavon safe for untrusted input?

Readers enforce depth, size, table, and archive limits and never panic. The HTML writer is not a sanitizer, so raw HTML in the input passes through as in Pandoc.