markdown-to-image
Community将 Markdown 转换为可直接分享的海报图片。
Authorzephyrwang6
Version1.0.0
Installs0
System Documentation
What problem does it solve?
将 Markdown 内容转换为可直接分享的图片海报,解决将文本内容快速变成可在社交媒体传播的视觉素材的需求。
Core Features & Use Cases
- 固定 3:4 比例(1080×1440 像素),适合在社交媒体上使用的封面格式。
- 自动分页:内容较多时自动生成多张图片,避免信息拥挤。
- 智能 SVG 头图:根据主题关键词自动生成风格化头图,提升视觉辨识度。
- 智能标题提取:从元信息提取嘉宾与主题,生成清晰标题,便于续页呈现。
- 自适应排版与大字设计:确保可读性和专业排版,适用于微信、小红书、微博等平台。
- 快速工作流示例:通过命令行将 Markdown 转换为图片,输出到 attachments/MMDD 目录。
Quick Start
Use the following commands to convert a Markdown file to image posters:
- python3 scripts/md_to_image.py --file /path/to/content.md
- python3 scripts/md_to_image.py --file /path/to/content.md --output-dir /path/to/output
- python3 scripts/md_to_image.py --file /path/to/content.md --items-per-page 4
Dependency Matrix
Required Modules
playwrightmarkdownrequests
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: markdown-to-image Download link: https://github.com/zephyrwang6/myskill/archive/main.zip#markdown-to-image Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.