Convert Markdown text to DOCX, PPTX, XLSX, PDF, PNG, SVG, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.
设计与多媒体
Markdown Mobile Export
试用Use when a task needs a local Markdown file path or pasted Markdown text converted into a faithful mobile-friendly PNG/JPG long image for phone-readable arti...
它能做什么
Use when a task needs a local Markdown file path or pasted Markdown text converted into a faithful mobile-friendly PNG/JPG long image for phone-readable arti...
技能文档
Markdown Mobile Export
Faithful Markdown → mobile long image, no content rewriting.
When to Use
- Local
.mdfile → phone-friendly long image - Pasted Markdown text → PNG or JPG
- Article-style faithful export (not poster or carousel redesign)
- Intermediate HTML needed for inspection alongside image
Do Not Use
- Poster redesigns where content should be rewritten into marketing blocks
- Carousel slicing across multiple images
- Rich web app UI design work
- PDF output
Quick Start
# From file
python3 {baseDir}/scripts/markdown_to_long_image.py \
--input-file /path/to/file.md
# From pasted text
python3 {baseDir}/scripts/markdown_to_long_image.py \
--markdown-text "# Title\n\nBody"
# Custom output path and format
python3 {baseDir}/scripts/markdown_to_long_image.py \
--input-file /path/to/file.md \
--output-image /path/to/output.png \
--format jpg
Defaults
| Aspect | Default |
|---|---|
| Input | Markdown file path or pasted text |
| Output | PNG long image + HTML sidecar retained on disk |
| Style | Faithful conversion, mobile-first, zh-CN typography |
| Width | 820px card layout with warm earth-tone theme |
| Browser | Local Chrome/Chromium/Edge/Brave → Playwright fallback |
Workflow
- Resolve input (
--input-fileor--markdown-text) - Normalize pasted text into a concrete
.source.mdfile when needed - Render mobile-friendly HTML with embedded CSS
- Detect 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 result with
output_htmlandoutput_imagepaths
Scripts
| Script | Purpose |
|---|---|
scripts/markdown_to_long_image.py | CLI entry point, orchestrates pipeline |
scripts/render_markdown_mobile_long_image.py | Markdown → styled mobile HTML |
scripts/export_long_image.py | Browser detection + screenshot export |
References
| Topic | File |
|---|---|
| Pipeline details | references/workflow.md |
| Common issues | references/troubleshooting.md |
Validation
After generating output, verify:
- HTML file exists at reported path
- Image file exists and is non-zero bytes
- Image is full-page capture (not single viewport crop)
- Remote images loaded without broken placeholders
相关技能
Convert Markdown heading outlines into themed KMind mind maps. Export PNG or SVG images with theme presets, layouts, edge routes, dark mode, and rainbow bran...
Professional markdown rendering, export, and publishing via MCP. Use when user asks to "render markdown", "export to PDF", "convert to DOCX", "create a document", "publish a document", "share a link", "make a slide deck", "diff two markdown files", "export to HTML", "create a shareable document", "sync docs from GitHub", or "generate an image of this markdown". Do NOT use for simple markdown editing, code generation, or general writing that doesn't need styled output.
让 Markdown 在 GitHub、MDX、Pandoc、文档站、Slack、Notion 等解析器中正确渲染,并定位修复具体损坏位置。
Render text into an image and return a temporary local image file path, with optional data URI. Use when Clawhub or Codex needs to convert plain text, styled...
Export Grok conversations from X (x.com) via browser-network capture and convert them into Obsidian-ready Markdown files. Use when a user wants to back up Grok chat history, preserve User vs Grok turns, and generate Markdown notes with YAML frontmatter (URL, created) from captured JSON.