📄
WritingPython

Markdown to PDF

by alchaincyf

Markdown to PDF is a Writing skill for Claude Code, published by alchaincyf in huashu-skills.

1.3K stars212 forkson alchaincyf/huashu-skillsAdded 2026/07/20+1% in starsRepository updated 2026/08/02
Install in seconds
Install Markdown to PDF
Copy Markdown to PDF into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/alchaincyf/huashu-skills/tree/master/huashu-md-to-pdf ~/.claude/skills/huashu-md-to-pdf

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/alchaincyf/huashu-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
huashu-md-to-pdf/SKILL.md in alchaincyf/huashu-skills
Installs to
~/.claude/skills/huashu-md-to-pdf
Collection
One of 21 skills cataloged from this repository
Category
Writing1361 skills

What Markdown to PDF does

Converts Markdown documents to professional PDF white papers with Apple design style, including auto-generated cover, table of contents, and headers/footers. Ideal for technical docs, tutorials, and reports requiring polished formatting.

Markdown to PDF is cataloged under Writing on DirSkills.

Documentation

README

Markdown to PDF Skill

将 Markdown 文档转换为专业的苹果设计风格 PDF 白皮书。

核心功能

  1. 专业排版:书籍级排版质量,自动处理分页、孤行寡行
  2. 苹果设计:SF 字体系统、现代简洁风格、专业配色
  3. 完整目录:自动提取章节结构,双列布局,可点击跳转
  4. Markdown 完美支持:代码块、表格、引用、列表等全部正确渲染

使用方法

基础用法

# 转换单个文件
python scripts/convert.py input.md

# 指定输出文件名
python scripts/convert.py input.md -o "我的白皮书.pdf"

# 自定义标题和作者
python scripts/convert.py input.md --title "技术白皮书" --author "花叔"

Markdown 文档要求

你的 Markdown 文档应该遵循以下结构:

# 文档标题

## 1. 第一章
### 1.1 第一节
### 1.2 第二节

## 2. 第二章
### 2.1 第一节

关键规则

  • 主章节:## 1. 标题(数字 + 点 + 空格 + 标题)
  • 子章节:### 1.1 标题(数字.数字 + 空格 + 标题)
  • 这样才能正确提取目录

设计特点

封面设计

  • 淡灰色渐变背景
  • 大标题:64pt,简洁现代
  • 副标题和元信息

目录设计

  • 双列布局,单页展示
  • 主章节粗体,子章节缩进
  • 可点击跳转到对应章节

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Markdown to PDF

  • What else does alchaincyf publish alongside Markdown to PDF?

    Markdown to PDF is one of 21 skills that DirSkills catalogs from alchaincyf/huashu-skills, the repository it ships in. Its siblings there include AI Presentation Maker, Article Image Upload and Article to Social Content. Each one is a separate skill with its own page in this directory, installs the same way Markdown to PDF does, and is maintained by alchaincyf in that same repository. The rest of the collection is listed on the alchaincyf/huashu-skills page.

  • How does Markdown to PDF compare to other Writing skills?

    Markdown to PDF ranks #353 by stars among the 1361 Writing skills in this catalog. The most-starred ones next to it are Article Writing, Social Media Content Calendar and Knowledge Comic Creator. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Markdown to PDF against them. Open each page to compare what they document and how they install.

More from alchaincyf/huashu-skills

Markdown to PDF is one of 21 skills cataloged on DirSkills from alchaincyf/huashu-skills.

See all 21 skills
📊
2026/07/20

AI Presentation Maker

End-to-end presentation creation from content to PPTX, with AI illustration generation and 18 design styles. Use when the user mentions making slides, presentations, or Keynote.
Automation
1.3K212
🖼️
2026/07/20

Article Image Upload

Analyzes articles to determine needed illustrations, generates images via AI or public domain sources, uploads to ImgBB, and inserts permanent Markdown links. Use when writing long-form articles that need illustrations.
Automation
1.3K212
✍️
2026/07/20

Article to Social Content

Condenses long articles (3000-5000 words) into concise 200-500 word social media posts for X platform, preserving key ideas and personal tone. Ideal for repurposing blog posts for social promotion.
Writing
1.3K212
📊
2026/07/20

Data Analysis & Office Pro

An end-to-end data analysis and office productivity assistant that handles Excel data processing, campaign review, ROI calculation, data visualization, report generation, and PPT creation. It helps users uncover insights and produce professional reports and presentations.
Data
1.3K212
🎨
2026/07/20

Design Philosophy Consultant

Recommends 3 distinct design directions from 20 styles, generates visual demos and AI prompts, and provides expert design critiques for projects like websites, presentations, and reports.
Frontend
1.3K212
🎬
2026/07/14

Douyin Viral Script Workflow

A complete workflow for creating viral Douyin scripts: download competitor videos, analyze with Gemini, extract patterns, generate scripts and storyboards, and review for AI-like language. Use for e-commerce planting videos or Qianchuan ad creatives.
Writing
1.3K212