Hacker News (100+) - 04 Dec 2026
Page 2 of 2
# Check documents in CI and format Markdown in place.
weavon lint docs/*.md --diagnostics=sarif > lint.sarif
weavon fmt --check docs/*.md
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.
| Area | Difference | What to do |
|---|---|---|
| Default citation style | The built-in style and locales are Weavon's own work. Some citations can differ from Pandoc's default.csl. | Use --csl with the style that you need. |
| DOCX, ODT, FODT, and PPTX styles | Weavon writes its own default styles, because the reference documents of Pandoc are GPL. The output bytes differ. | Use --reference-doc with your reference document. |
| EPUB stylesheet | Weavon uses its own default stylesheet. | Use --css. |
| Translated labels | Weavon has its own labels (for example "Abstract") for 107 language tags. Some labels differ from Pandoc. | Put translation files in DATADIR/translations/. |
| Syntax highlighting | Weavon highlights all 194 built-in Pandoc 3.13 languages using 62 KDE language definitions (plus the shared Alerts helper) and 132 Rust definitions written for Weavon, with 0 differences across 13,986 replay cases. | Use --syntax-definition FILE.xml to add custom languages. |
| --print-default-data-file | Templates and some built-in data are available. Pandoc translation files are not. | Get other files from the Pandoc distribution. |
| Shell completion | Weavon makes its own completion scripts. | None. |
| Limits | Weavon stops with an error at limits for nesting depth, input size, table size, and archive size. Pandoc can use all memory or run without end on such input. | None for normal documents. |
| Error messages | Weavon does not print the Haskell call stack lines of Pandoc. Some JSON and YAML error texts differ. | None. |
| Native Office round trips | Same-format conversion can preserve unchanged package parts. Edited content can require regeneration. Cross-format conversion can lose Office-specific features. | Check the output after a conversion that changes the document. |
| Embedded PDF and PDF input | The embedded engine supports a subset of LaTeX. The PDF reader needs an external optical character recognition (OCR) command for scanned pages. | Use lualatex for unsupported LaTeX or weavon extract --ocr CMD for scans. |
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.
--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.
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.
cargo build --release -p weavon-cli
scripts/gate.sh
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.
All upstream copyright notices and licence texts are preserved in
THIRD_PARTY_NOTICES.md,
third_party/licences/, and per-crate NOTICE.md
files.
Weavon is an independent project and is not affiliated with or endorsed by John MacFarlane or the Pandoc project.
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.
Previous page | HN comments | More Hacker News (100+) | Headlines
Original: https://github.com/weavon/weavon