Convert Markdown to Word/PDF with Mermaid diagram rendering & syntax highlighting in a nice WebGUI.
287
Convert Markdown to Word documents with Mermaid diagram rendering and syntax highlighting.
This project is delivered as a Docker container. There is no local installation.
docker pull revil0/madmermaidoc:latest
docker run --rm -p 3000:3000 \
-e PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium \
-e MMD_TEMPLATE_DOCX=/app/templates/reference.docx \
-v mmd-data:/app/.data \
revil0/madmermaidoc:latest
Open http://<ip-address or fqdn>:3000 in your browser.
services:
madmermaidoc:
image: revil0/madmermaidoc:latest
container_name: madmermaidoc
restart: unless-stopped
ports:
- "3000:3000"
environment:
NODE_ENV: production
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium
MMD_TEMPLATE_DOCX: /app/templates/reference.docx
volumes:
- mmd-data:/app/.data
volumes:
mmd-data:
Start with:
docker compose up -d
The container is configured by environment variables.
| Variable | Purpose | Default |
|---|---|---|
PUPPETEER_EXECUTABLE_PATH | Path to Chromium inside the container | /usr/bin/chromium |
MMD_TEMPLATE_DOCX | Path to the reference DOCX template | /app/templates/reference.docx |
MMD_PDF_STYLE | PDF style name or path | github-light |
MMD_PDF_CSS | Custom CSS path for PDF output | empty |
MMD_HIGHLIGHT_STYLE | Syntax highlight theme (Shiki) | pygments |
MMD_KEEP_PDF_HTML | Keep HTML used to generate PDF (1 to enable) | 0 |
/app/.data. Use a volume to keep it across restarts./app/templates/pdf. You can mount your own folder if needed.MMD_TEMPLATE_DOCX at it.Example for a custom template:
docker run --rm -p 3000:3000 \
-e MMD_TEMPLATE_DOCX=/app/templates/custom.docx \
-v $(pwd)/templates:/app/templates \
-v mmd-data:/app/.data \
revil0/madmermaidoc:1.1.2
MIT. See LICENSE.
This software is provided "as is", without warranty of any kind. You are solely responsible for validating outputs and ensuring the software meets your requirements before production use.
Powered by Shiki, supporting:
Code blocks are rendered with a light gray background, monospace font, and colored syntax.
Content type
Image
Digest
sha256:8447e9fca…
Size
1.3 GB
Last updated
7 months ago
docker pull revil0/madmermaidoc