huashu-md-to-pdflisted
Install: claude install-skill Biraj2004/huashu-skills-english
# Markdown to PDF Skill
Convert Markdown documents into professional Apple-design-style PDF white papers.
## Core Features
1. **Professional typesetting**: Book-quality layout with automatic handling of page breaks and widow/orphan control
2. **Apple design language**: SF font system, modern minimalist style, professional colour palette
3. **Full table of contents**: Automatically extracts chapter structure, dual-column layout, clickable page jumps
4. **Complete Markdown support**: Code blocks, tables, blockquotes, lists — all rendered correctly
## How to Use
### Basic Usage
```bash
# Convert a single file
python scripts/convert.py input.md
# Specify output filename
python scripts/convert.py input.md -o "My White Paper.pdf"
# Custom title and author
python scripts/convert.py input.md --title "Technical White Paper" --author "Huashu"
```
### Markdown Document Requirements
Your Markdown document should follow this structure:
```markdown
# Document Title
## 1. Chapter One
### 1.1 Section One
### 1.2 Section Two
## 2. Chapter Two
### 2.1 Section One
```
**Key rules**:
- Main chapters: `## 1. Title` (number + full stop + space + title)
- Sub-sections: `### 1.1 Title` (number.number + space + title)
- This structure is required for the table of contents to generate correctly
## Design Features
### Cover Design
- Light grey gradient background
- Large title: 64pt, clean and modern
- Subtitle and metadata information
### Table of Contents Design
- Dual-column layo