Zum Inhalt springen
Skillpedia
Schreiben40k · #7285

md-to-docx

Was er macht

Dieses Tool wandelt deine Texte im Markdown-Format (.md) in professionell aussehende Word-Dokumente (.docx) um. Dabei werden auch PNG-Bilder übernommen, die du in deinem Text eingebunden hast.

Wann du ihn nutzt

  • ✓Wenn du einen Entwurf in ein formales Dokument umwandeln möchtest.
  • ✓Wenn du aus Überschriften automatisch ein Inhaltsverzeichnis erstellen möchtest.
  • ✓Wenn du Dokumente teilst, die in Word geöffnet werden sollen.

Link zum Skill

https://github.com/github/awesome-copilot/blob/main/skills/md-to-docx/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/github/awesome-copilot/blob/main/skills/md-to-docx/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Wandle diese Markdown-Datei in Word um: my_document.md”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Du stellst eine Textdatei im Markdown-Format bereit. Das Tool nutzt das Programm Node.js, um deinen Text zu lesen, Überschriften, Listen und Bilder zu erkennen und anschließend eine neue Datei im Word-Format (.docx) zu erstellen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Markdown to Word (.docx) Skill

Convert Markdown (.md) files into professionally formatted Word (.docx) documents with embedded PNG images. Uses pure JavaScript via the docx and marked npm packages — no Pandoc, LibreOffice, or any native binary required.

How to Convert

# Install dependencies (one-time, from the scripts folder)
cd skills/md-to-docx/scripts && npm install

# Convert (run from workspace root)
node skills/md-to-docx/scripts/md-to-docx.mjs <input.md> [output.docx]

If output.docx is omitted, it defaults to <input-basename>.docx in the current directory.

Skill Folder Contents

File Purpose
SKILL.md This instruction file
scripts/md-to-docx.mjs Node.js Markdown-to-Word converter
scripts/package.json Dependencies (docx, marked)

Prerequisites

Requirement Version Notes
Node.js 18+ Required runtime
docx 9+ Pure JS Word document generator
marked 15+ Markdown parser

No native binaries. No system-level installs. Works on Windows, macOS, and Linux.

Features

The converter:

  • Extracts YAML front-matter — uses title, date, version, audience for the title page
  • Generates a title page — with project name, subtitle, date, version, and audience
  • Generates a table of contents — built from H1-H3 headings
  • Embeds PNG images — resolves ![alt](path) references relative to the input .md file, reads the PNG, and embeds it inline in the Word document
  • Styled output — Calibri font, colored headings (#1F3864), styled tables with alternating row colors, code blocks in Consolas
  • Handles all Markdown elements — headings, paragraphs, tables, code blocks, lists, images, links, horizontal rules

Image Embedding

The converter automatically embeds PNG images referenced in the Markdown:

![High-Level Architecture](diagrams/high-level-architecture.drawio.png)

The image path is resolved relative to the input Markdown file. The PNG is read, dimensions are extracted from the PNG header, and the image is scaled to fit within 6 inches width while preserving aspect ratio.

If an image file is not found, a placeholder [Image not found: <path>] is inserted.

Front-Matter Format

---
title: Project Name — Project Summary
date: 2025-01-15
version: 1.0
audience: Engineering Team, Architects, Stakeholders
---

The title is split on — or – into main title and subtitle for the title page.

Häufige Fragen

Muss ich etwas Kompliziertes installieren?

Du brauchst Node.js auf deinem Computer. Den Rest richtet das Tool automatisch ein, sobald du den Installationsbefehl ausführst.

Was passiert, wenn mein Text Bilder enthält?

Wenn die Bilder im PNG-Format vorliegen und sich im selben Ordner oder einem zugehörigen Unterordner wie deine Markdown-Datei befinden, werden sie ins Word-Dokument übernommen.

Was ist 'YAML-Front-Matter'?

Das ist ein kleiner Textblock am Anfang deiner Markdown-Datei, der zwischen drei Bindestrichen (---) steht. Dort kannst du Informationen wie Titel, Datum und Zielgruppe für dein Word-Dokument hinterlegen.

Details

Originalbeschreibung des Autors

Convert Markdown files to professionally formatted Word (.docx) documents with embedded PNG images — pure JavaScript, no external tools required

repo: github/awesome-copilot

Beliebtheit

GitHub-Sterne
40k
Platz im Ranking
#7285
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills