본문으로 건너뛰기
Skillpedia
글쓰기40k · #7285

md-to-docx

하는 일

이 도구는 Markdown(.md) 형식으로 작성한 글을 전문적인 느낌의 Word(.docx) 문서로 바꿉니다. 글에서 참조한 PNG 이미지도 함께 넣어 줍니다.

사용하는 경우

  • ✓초안을 정식 문서로 만들어야 할 때.
  • ✓제목을 바탕으로 목차를 자동으로 만들고 싶을 때.
  • ✓Word에서 열어야 하는 문서를 공유할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/md-to-docx/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 Markdown 파일을 Word로 변환해 주세요: my_document.md”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Markdown으로 작성한 텍스트 파일을 제공합니다. 도구는 Node.js라는 프로그램으로 글을 읽고 제목, 목록, 이미지를 이해한 다음 새 Word(.docx) 파일을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

자주 묻는 질문

복잡한 것을 따로 설치해야 하나요?

컴퓨터에 Node.js가 설치되어 있어야 합니다. 나머지는 설치 명령을 실행하면 자동으로 설정됩니다.

글에 이미지가 있으면 어떻게 되나요?

이미지가 PNG 형식이고 Markdown 파일과 같은 위치나 관련 폴더에 있다면 Word 문서에 함께 포함됩니다.

'YAML 프런트매터'는 무엇인가요?

Markdown 파일 맨 앞에 세 개의 하이픈(---) 사이로 적는 짧은 텍스트 블록입니다. 제목, 날짜, 대상 독자처럼 Word 문서에 쓸 정보를 적어 둘 수 있습니다.

상세 정보

작성자의 원본 설명

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

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7285
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬