Markdown Mobile Export — Markdown 移动 导出
v0.1.0Use when a task needs a local Markdown file path or pasted Markdown text converted into a fAIthful 移动-friendly PNG/JPG long image for phone-readable articles, 图形界面des, notes, or 报告s, with HTML kept beside the image for inspection.
运行时依赖
安装命令
点击复制技能文档
Markdown 移动 导出
FAIthful Markdown → 移动 long image, no content rewriting.
When to Use Local .md file → phone-friendly long image Pasted Markdown text → PNG or JPG Article-style fAIthful 导出 (not poster or carousel rede签名) Intermediate HTML needed for inspection alongside image Do Not Use Poster rede签名s where content should be rewritten into marketing blocks Carousel slicing across multiple images Rich 网页 应用 UI de签名 work PDF 输出 Quick 启动 # From file python3 {baseDir}/scripts/markdown_to_long_image.py \ --输入-file /path/to/file.md
# From pasted text python3 {baseDir}/scripts/markdown_to_long_image.py \ --markdown-text "# Title\n\nBody"
# Custom 输出 path and 格式化 python3 {baseDir}/scripts/markdown_to_long_image.py \ --输入-file /path/to/file.md \ --输出-image /path/to/输出.png \ --格式化 jpg
Defaults Aspect Default 输入 Markdown file path or pasted text 输出 PNG long image + HTML sidecar retAIned on disk Style FAIthful conversion, 移动-first, zh-CN typography Width 820px card layout with warm earth-tone theme Browser Local Chrome/Chromium/Edge/Brave → Playwright fallback 工作流 Resolve 输入 (--输入-file or --markdown-text) Normalize pasted text into a concrete .source.md file when needed Render 移动-friendly HTML with embedded CSS 检测 local Chromium-family browser Capture full-page screenshot (segmented stitch with overlap) Fall back to Playwright Chromium if no local browser is usable Print JSON 结果 with 输出_html and 输出_image paths Scripts Script Purpose scripts/markdown_to_long_image.py 命令行工具 entry point, orchestrates 流水线 scripts/render_markdown_移动_long_image.py Markdown → styled 移动 HTML scripts/导出_long_image.py Browser 检测ion + screenshot 导出 References Topic File 流水线 detAIls references/工作流.md Common issues references/troubleshooting.md 验证
After generating 输出, 验证:
HTML file exists at 报告ed path Image file exists and is non-zero bytes Image is full-page capture (not single viewport crop) Remote images loaded without broken placeholders