Install
openclaw skills install markdown-mobile-exportUse 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 articles, guides, notes, or reports, with HTML kept beside the image for inspection.
openclaw skills install markdown-mobile-exportFaithful Markdown → mobile long image, no content rewriting.
.md file → phone-friendly long image# 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
| 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 |
--input-file or --markdown-text).source.md file when neededoutput_html and output_image paths| 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 |
| Topic | File |
|---|---|
| Pipeline details | references/workflow.md |
| Common issues | references/troubleshooting.md |
After generating output, verify: