Skip to main content

Markweave

Markweave: Markdown to DOCX, PDF and PowerPoint

Markweave turns a Markdown file into DOCX, PDF, or an editable PowerPoint presentation from a small browser interface. It keeps your Word and PowerPoint templates and completed jobs on local persistent storage. It scans every upload with ClamAV by default and can explicitly delegate that boundary to a trusted upstream proxy.

Experimental 2md converts supported office documents and text PDFs back to Markdown, including slide-oriented Markdown or Marp from edited PPTX files. It requires a separately configured external broker. See the capability matrix for inputs, outputs, limits and guides.

The core product is Markdown to DOCX, PDF and editable PowerPoint. The optional Composer workspace and experimental 2md are feature-frozen: they receive only bug fixes, security fixes, dependency updates, regression fixes and removals, and any new capability needs a new owner decision. Composer assistance needs a configured, enabled, and authorized LLM connection; retained drafts, revisions, and exports stay accessible without one. See the scope freeze.

The project is licensed under Apache-2.0. The source package version is 0.9.1. The default public quickstart pins the matched published backend and Next.js frontend images by their verified registry digests. Do not substitute candidate or inferred digests; candidate testing may override both image references together with another matched immutable pair.

The documentation index provides longer guides organized by role. You do not need to read them before trying the local profile.

Try it locally

You need OpenSSL, flock, about 6 GiB of available memory, and Docker Compose or rootless Podman with a Compose provider. Published images support Linux/AMD64.

git clone https://github.com/Guillaume-Lombardo/markweave.git
cd markweave
scripts/quickstart-simple.sh up
scripts/quickstart-simple.sh password

Open http://localhost:8080 and sign in as admin with the displayed password. In 2docx, upload examples/quickstart-source.md, keep Pandoc default, choose DOCX, PDF, or both, and start the conversion. Download the result when ready. The quickstart allows up to 50 pages per PDF. The first startup can take several minutes while ClamAV loads its signatures.

For editable PowerPoint, open 2pptx and follow the PowerPoint guide. The ordinary quickstart supports both forward workflows; 2md requires the external broker. The simple quickstart keeps Composer model setup disabled by default. An explicitly supplied, matched Composer-capable backend/frontend pair can opt in with MARKWEAVE_SIMPLE_COMPOSER_SETUP=true; the helper then includes compose.simple-composer.yaml. Its administrator can then open Administration → LLM settings to approve an HTTPS destination, enter a write-only credential, select and test a model, and grant access. The candidate quickstart keeps its Composer key in a separate persistent private volume. See the administration guide.

scripts/quickstart-simple.sh ps
scripts/quickstart-simple.sh logs
scripts/quickstart-simple.sh down

Normal shutdown preserves accounts, templates, results and the administrator password. Results in this evaluation profile expire after 10 minutes.

This is a local evaluation profile, bound to loopback. Its disposable /work volume has no physical capacity cap. Do not expose it as a production service. The quickstart operations guide explains the bounded secure profile, Docker/Podman selection, custom ports and HTTPS proxy origins, Word templates, recovery, and the explicit trusted-upstream and insecure SSH-tunnel modes with their restrictions.

Convert a file without a server

The --local mode converts your own file through the same validation, limits, and engines as the service, without an account or upload. A host installation requires Linux with user and network namespaces and seccomp available to the engine launcher, plus the configured engines. Follow the local settings instructions and create out/ before running the host command.

markweave convert doc.md --local --to docx,pdf -o out/

On macOS, use the bundled-image command with a Linux/AMD64 Podman environment. It also works on Linux and supplies the approved engines. Local conversion records engine versions in out/doc.traceability.json and warns when one differs from the approved pin. Use --require-pinned to fail on a version mismatch.

Use and operate Markweave

How it works

The browser and HTTP API authenticate a local user, validate and scan the upload, and record a durable conversion job. A worker claims that job with a renewable lease, resolves the exact immutable template version when one was selected (or uses Pandoc's built-in default reference document), and runs the local Pandoc, Chromium/Mermaid, and LibreOffice engines inside bounded workspaces. Results and traceability metadata are retained for the configured period; document content is not written to logs.

The standalone profile used by Compose keeps SQLite metadata and atomic objects under one /data volume and runs one embedded worker. The distributed profile separates API and worker processes, using PostgreSQL and S3-compatible object storage so workers can scale independently. Both profiles share the same authorization, queue, validation, and retention contracts. See the architecture guide, API guide, and complete configuration reference for the deeper design.

Develop and contribute

Development targets Python 3.14 and uses uv, Ruff, ty, Pytest, and the repository's locked toolchain. Install all groups, then run the canonical checks:

uv sync --all-groups
uv run ruff format --check .
uv run ruff check .
uv run ty check
scripts/javascript/bootstrap-pnpm.sh "$PWD/.pnpm-tools"
export PATH="$PWD/.pnpm-tools/bin:$PATH"
export COREPACK_HOME="$PWD/.pnpm-tools/corepack-home" COREPACK_ENABLE_NETWORK=0
pnpm install --frozen-lockfile --ignore-scripts
pnpm run test:web
uv run pytest -m "not requires_pandoc and not requires_mermaid and not requires_libreoffice and not requires_podman"
uv run pytest

Read CONTRIBUTING.md and the normative product specification before changing behavior. The local-development guide covers the repository layout and deeper setup; the release guide covers protected PyPI and GHCR publication.

Metadata

Release files for markweave 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markweave 0.9.1
File Size Uploaded Provenance Actions
markweave-0.9.1.tar.gz 557.2 kB With provenance Details for markweave-0.9.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for markweave 0.9.1
File Interpreter ABI Platform Actions
markweave-0.9.1-py3-none-any.whl Python 3 none any Details for markweave-0.9.1-py3-none-any.whl

Total release size: 1.3 MB

Release files / markweave-0.9.1.tar.gz

Download URL markweave-0.9.1.tar.gz
Size 557.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bdb7ef755ea57f187753d3836a43439e24909f5ac84c23ce834a64f15bb03ccb
BLAKE2b-256 checksum
How to use checksums
8fea75c87d720577d045279b8bd36707876b72f9320d149083cc8d4d07db5d43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / markweave-0.9.1-py3-none-any.whl

Download URL markweave-0.9.1-py3-none-any.whl
Size 741.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a292a1972854dc5958be97e3cccc41174b3405947ccc3b167faaec183ad30e3
BLAKE2b-256 checksum
How to use checksums
073ce3f9f87a1a5b1bd5bdd3cfd7b58efdfc2aec3e2099de0d685905208c07ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for markweave 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for markweave-0.9.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page