Index of every page on this site: llms.txt
All skills
github avatar

/markdown-to-word-mermaid

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Export Markdown containing Mermaid code fences to Word (.docx) with embedded SVG diagrams and PNG fallbacks. Use when diagram sharpness, Office-compatible labels, or page-aware placement matters. Not for Word-to-Markdown conversion, editable Office shapes, or general slide creation.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/markdown-to-word-mermaid

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespublication.md

≈587 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Scope and evaluation notes

Scope vs. general Markdown converters

This skill converts Markdown documents containing Mermaid code fences into Word (.docx) documents. It renders diagrams locally with Mermaid CLI, embeds vector SVG through Office OOXML relationships (asvg:svgBlip), retains 3x PNG fallbacks, and keeps tall diagrams together with page-aware placement.

A general converter such as md-to-docx handles Markdown body content and pre-rendered PNG images. Use markdown-to-word-mermaid when the input contains Mermaid source fences that must be rendered into vector SVGs with Office-compatible text labels (htmlLabels: false) and page-aware sizing. Embedding an SVG does not make individual diagram nodes, connectors, or labels editable as native Word shapes.

Evaluation cases

Input / request Expected behavior
Export a design document with Mermaid flowcharts to Word Select this skill and embed both vector SVG and PNG fallback in the DOCX
Export a runbook containing a tall Mermaid diagram to Word Keep the diagram together on a page, starting on a new page and scaling when needed
Convert a plain Markdown document that only links to existing PNG images Prefer a general Markdown-to-DOCX converter if Mermaid rendering is not needed
Edit individual Mermaid shapes and connectors directly inside Word Explain that embedded SVGs are not editable Office shapes and suggest an editable-diagram workflow
Mermaid CLI or a compatible local browser is unavailable Report the missing prerequisite and stop before rendering or installing packages without approval

Verification checklist

  • Confirm that sample fixtures and generated outputs contain no confidential paths, credentials, or non-synthetic data.
  • Run the unit test suite (python -m unittest discover -s tests -v) to verify SVG relationship injection, PNG fallback retention, custom font propagation, ordered list numbering, diagram alt text, timeout handling, and atomic output staging.
  • When MERMAID_CLI is configured, run the real-renderer test against assets/example.md and confirm that no foreignObject label elements remain in the embedded SVGs.
  • Perform visual inspection in Word separately from automated package tests, checking label sharpness, connectors, font appearance, and pagination.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts18d3 checks · Risk SAFE
  • Gen Agent Trust Hub18d

    This skill converts Markdown files to Word documents with high-quality diagrams. It follows security best practices by implementing XXE protections, avoiding shell execution in subprocess calls, and requiring user approval for dependency installations, though it inherently handles untrusted user-supplied document content.

  • Socket18d

    No alerts

  • Snyk18d

    Risk: LOW · No issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month
argument-hint
Markdown input file and optional DOCX output path
user-invocable
true

README badge

README badge for github/awesome-copilot/markdown-to-word-mermaid