返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

md-to-pdf

Convert markdown files to clean, formatted PDFs using reportlab

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,949
下载量
0
收藏
概述
安装方式
版本历史

md-to-pdf

# Markdown to PDF Convert markdown documents to professional, clean PDFs with proper formatting. ## Usage ```bash # Basic usage uv run scripts/md-to-pdf.py input.md # Specify output uv run scripts/md-to-pdf.py input.md -o output.pdf uv run scripts/md-to-pdf.py input.md --output my-report.pdf # Verbose mode uv run scripts/md-to-pdf.py input.md -v ``` ## Features - **Headers**: H1-H6 with hierarchical styling - **Text formatting**: Bold, italic, inline code - **Lists**: Bullet lists, numbered lists, task lists - **Code blocks**: Syntax highlighting with background - **Tables**: Full table support with headers - **Links**: Clickable hyperlinks - **Horizontal rules**: Visual section dividers - **YAML frontmatter**: Automatically skipped - **Special characters**: Emojis, Unicode symbols - **Page numbers**: Automatic footer with page numbers - **Professional styling**: Clean, readable output ## Options - `-o, --output`: Output PDF file path (default: input_filename.pdf) - `-v, --verbose`: Print detailed processing information ## Supported Markdown Elements | Element | Syntax | Status | |---------|--------|--------| | Headers | `# H1` to `###### H6` | ✅ | | Bold | `**text**` or `__text__` | ✅ | | Italic | `*text*` or `_text_` | ✅ | | Inline code | `` `code` `` | ✅ | | Code blocks | ``` | ✅ | | Bullet lists | `- item` or `* item` | ✅ | | Numbered lists | `1. item` | ✅ | | Task lists | `- [x] done` | ✅ | | Tables | `| col | col |` | ✅ | | Links | `[text](url)` | ✅ | | Horizontal rules | `---` or `***` | ✅ | | Blockquotes | `> quote` | ✅ |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 md-2-pdf-1776370563 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 md-2-pdf-1776370563 技能

通过命令行安装

skillhub install md-2-pdf-1776370563

下载 Zip 包

⬇ 下载 md-to-pdf v1.0.0

文件大小: 7.08 KB | 发布时间: 2026-4-17 14:26

v1.0.0 最新 2026-4-17 14:26
Initial release of md-to-pdf:

- Convert markdown files to clean, professional PDFs using reportlab.
- Supports headers, bold/italic text, code (inline and blocks), tables, lists (bullet, numbered, task), hyperlinks, and horizontal rules.
- Skips YAML frontmatter automatically.
- Handles special characters and emojis.
- Adds page numbers and uses professional styling.
- Command-line options for output file naming and verbose mode.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部