Convert documents and URLs to Markdown with a MoonBit engine
Dependencies
moon check
moon testscripts\build.batmoon build --target native --release_build/native/release/build/moonbitlang/moonbitmark/cmd/main/main.exe <input> [output]_build\native\release\build\moonbitlang\moonbitmark\cmd\main\main.exe tests\conversion_eval\fixtures\inputs\html\simple_table.html
_build\native\release\build\moonbitlang\moonbitmark\cmd\main\main.exe --diag-json tests\conversion_eval\fixtures\inputs\pdf\multi_page.pdf
_build\native\release\build\moonbitlang\moonbitmark\cmd\main\main.exe --dump-ast tests\conversion_eval\fixtures\inputs\html\simple_table.htmlsrc/
├── ast/ 统一 AST 与 Markdown 渲染
├── capabilities/ 横切能力层,目前包含 OCR
├── core/ 结果类型、diagnostics、共享 helper
├── engine/ 检测与统一调度
├── formats/ 各格式转换器
├── libzip/ 纯 MoonBit ZIP / Deflate
├── mcp/ MCP 协议、handler 与传输
├── normalize/ 共享结构归一化 passes
├── python/ Python 解释器解析与 bridge 脚本定位
├── semantic/ Section tree / role / provenance 派生层
└── xml/ 纯 MoonBit XML parser
cmd/
├── main/ CLI 入口
├── demo/ 最小示例
├── mcp-server/ MCP STDIO 入口
└── mcp-http-server/ MCP HTTP 入口moon check
moon test
moon test --enable-coverage
moon coverage analyze
moon info
moon fmtpython tests/conversion_eval/scripts/run_eval.py runpwsh -File scripts/benchmark.ps1 -InputPath <input-file> -Iterations 10powershell -ExecutionPolicy Bypass -File scripts/run_ocr_mcp_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_stdio_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_resources_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_prompts_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_security_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_http_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/integration/mcp_http_security_smoke.ps1powershell -ExecutionPolicy Bypass -File tests/ocr/ocr_force_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/ocr/ocr_backend_missing.ps1
powershell -ExecutionPolicy Bypass -File tests/ocr/ocr_timeout_smoke.ps1
powershell -ExecutionPolicy Bypass -File tests/ocr/pdf_ocr_force_smoke.ps1Convert documents and URLs to Markdown with a MoonBit engine
Dependencies