A MoonBit-native document-to-Markdown converter with multi-format parsing, metadata, assets, batch conversion, and validation tooling
moon build cli --target native
moon build pdf --target native
moon build zip --target nativemoon build ocr --target native
moon build debug --target native
moon build bench --target native./_build/native/debug/build/cli/cli.exe --help
./_build/native/debug/build/cli/cli.exe --version
./_build/native/debug/build/cli/cli.exe <input> [output]
./_build/native/debug/build/cli/cli.exe normal --with-metadata <input> <output.md>
./_build/native/debug/build/cli/cli.exe batch <input_dir> <output_dir>
./_build/native/debug/build/cli/cli.exe ocr [--provider <name>] [--lang <code>] <input> [output]| Format | Current scope |
|---|---|
| XLSX | native workbook/sheet/cell conversion with conservative formula/merged-cell policy |
| DOCX | document structure recovery, not a Word layout engine |
| PPTX | presentation structure recovery, not a PowerPoint layout engine |
| native text-PDF scope only; no default OCR; encrypted PDFs fail closed | |
| ZIP | archive/container conversion with nested dispatch and PDF routing |
| EPUB | ZIP + OPF + spine + nav/NCX + XHTML chapters |
| HTML / HTM | lightweight safe parser; no browser engine, JS, or CSS layout |
| CSV / TSV / JSON / YAML / TXT / XML / Markdown | conservative structured/text paths |
moon info
moon fmt
moon check
moon test
./samples/check.sh
bash samples/quality_corpus/check.sh
./samples/bench.sh --suite smoke --kind smoke
bash samples/helpers/check_cli_contract.sh
bash samples/helpers/check_pdf_contract.sh
bash samples/helpers/check_zip_contract.sh
bash samples/helpers/check_batch_contract.sh
bash samples/helpers/check_debug_contract.sh
bash samples/helpers/check_ocr_contract.shbash samples/helpers/check_ocr_tesseract_smoke_optional.sh./samples/bench.sh./samples/bench.sh --suite smoke --kind smoke
./samples/bench.sh --suite doc-parse --kind library --iterations 10 --warmup 2
./samples/bench.sh --suite product-path --kind stage --iterations 10 --warmup 2
./samples/bench.sh --suite cold-start --kind cli --iterations 50 --warmup 5Install
Download zipA MoonBit-native document-to-Markdown converter with multi-format parsing, metadata, assets, batch conversion, and validation tooling