doc-convert
Skill3.1k starsChanged 2 months agoApache-2.0View on GitHub
把 Markdown 文稿排版并转换为 HTML、可打印 PDF 或长图 PNG。当用户说“Markdown/MD 转 HTML/PDF/图片、文章导出长图、MD 排版/渲染”时使用。仅处理 Markdown;DOCX/PPT 不在范围内,层级大纲转脑图用 mindmap。
- Installs packages
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about ZJU-REAL/Easel
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
In this repository114 other files it gives its agents.
- skills/openclaw/skill-xhs-publisher/AGENTS.mdAGENTS.md
- ai-image-genSkill
- ai-musicSkill
- ai-video-genSkill
- asset-managerSkill
- audio-denoiseSkill
- audio-editingSkill
- audio-mixSkill
- audio-visualizerSkill
- auto-short-videoSkill
- auto-subtitleSkill
- batch-processSkill
- beat-sync-videoSkill
- card-designSkill
- card-quoteSkill
- card-xiaohongshuSkill
- chart-visualizationSkill
- clipifySkill
- comparison-cardSkill
- copywritingSkill
- data-reportSkill
- ecom-details-imageSkill
- green-screenSkill
- gzh-designSkill
- image-editingSkill
- image-enhanceSkill
- infographicSkill
- meme-generatorSkill
- mindmapSkill
- multi-voice-dubbingSkill
- novel-writerSkill
- paper-explainerSkill
- poster-heroSkill
- post-formatterSkill
- remove-bgSkill
- roi-calculatorSkill
- short-dramaSkill
- skill-account-diagnosisSkill
- skill-algorithm-updatesSkill
- skill-article-outlineSkill
- skill-audience-profilerSkill
- skill-bilibili-uploadSkill
- skill-brand-onboardingSkill
- skill-campaign-plannerSkill
- skill-carousel-plannerSkill
- skill-channels-uploadSkill
- skill-collab-proposalSkill
- skill-comment-insightsSkill
- skill-community-opsSkill
- skill-competitor-analysisSkill
- skill-content-calendar-logSkill
- skill-content-calendarSkill
- skill-content-gap-analysisSkill
- skill-content-matrixSkill
- skill-content-postmortemSkill
- skill-content-repurposingSkill
- skill-content-strategySkill
- skill-cross-platform-diffSkill
- skill-cross-platform-publishSkill
- skill-data-trackerSkill
- The first 60 shown.
The file
Files
Markdown 格式转换 / 排版
把 Markdown 排版成 HTML / PDF / 长图 PNG。走
skills/shared/scripts/doc_convert.py(python-markdown 排版 + Chromium 打印/截图)。
思维导图见 mindmap;公众号专属排版见 skill-wechat-publisher;卡片/海报见 card-*/poster-hero。
输入 / 输出
- 输入:Markdown 文件(支持标题、列表、表格、代码块、引用、图片等)。
- 输出(
outputs/主题名/):按后缀.html/.pdf/.png(长图)。
执行
脚本路径(相对项目根):skills/shared/scripts/doc_convert.py(convert -h)。
# 转干净 HTML(可读排版 + CJK 字体)
python skills/shared/scripts/doc_convert.py convert -i article.md -o outputs/主题名/a.html
# 转 PDF(A4 可打印,适合存档/发送)
python skills/shared/scripts/doc_convert.py convert -i article.md -o outputs/主题名/a.pdf
# 转长图 PNG(适合发不支持 MD 的平台/朋友圈存档)
python skills/shared/scripts/doc_convert.py convert -i article.md -o outputs/主题名/a.png --width 800前置
- MD→HTML:需
pip install markdown。 - MD→PDF/PNG:需 playwright + chromium(
playwright install chromium)。
规则
- 长图宽度
--width按平台调(朋友圈/小红书 ~750-1080);正文宽度--page-width控制 HTML/PDF 版心。 - 图片用相对/绝对可访问路径,渲染时要能加载到。
- 需要 DOCX/PPT/富交互排版时本 SKILL 不覆盖(提示用 pandoc 或对应平台工具)。
- 产物统一进
outputs/主题名/。
参考来源
python-markdown(含 extra/tables/fenced_code/toc 扩展)做 MD→HTML,Chromium 无头
page.pdf()/screenshot(full_page) 出 PDF/长图,替代 pandoc 完成最常用的 MD 排版分发需求。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

