본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

md2pdf-converter

tianxingleo 제작

Git & GitHub
646clawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Offline Markdown to PDF converter with FULL Unicode support using Pandoc + WeasyPrint + local Twemoji cache (3660.

설명

이 스킬이 하는 일

Converts Markdown documents to PDF with full Unicode support, CJK font rendering, and colorful emojis using Pandoc, WeasyPrint, and a local Twemoji 14.0.0 cache. Works offline after an initial ~150MB download on first run.

Most Markdown-to-PDF tools either drop CJK characters or render emojis as black-and-white glyphs; this combines Pandoc, WeasyPrint, and a locally cached Twemoji set to handle both correctly offline.

사용 시점

  • Converting Markdown reports with Chinese or Japanese text to PDF
  • Exporting documents containing emojis as colorful PDFs
  • Generating technical docs with code blocks and tables as PDFs
  • Offline PDF conversion after initial setup
  • Producing PDFs from CJK-heavy content with correct font rendering

예시 워크플로

입력

User asks: Convert report.md to report.pdf

에이전트
  1. 1

    Run md2pdf-local.sh, which downloads Twemoji 14.0.0 (~150MB) to ~/.cache/md2pdf/ on first use

  2. 2

    Python script scans the cached PNG files and generates emoji_mapping.json

  3. 3

    Pandoc converts Markdown to HTML, applying a Lua filter that replaces emoji characters with local image paths

  4. 4

    WeasyPrint renders the HTML to PDF using AR PL UMing CN for CJK characters and local emoji PNGs

출력

report.pdf with correct Chinese characters, colorful emojis, code highlighting, and page numbers

요구 사항

  • Pandoc installed
  • WeasyPrint installed (pip3 install weasyprint or apt-get install python3-weasyprint)
  • AR PL UMing CN font installed for Chinese character rendering (apt-get install fonts-arphic-uming)

설치

clawhub install tianxingleo/md2pdf-converter

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크