Faithful Markdown → mobile long image, no content rewriting.
.md file → phone-friendly long imagebash
# 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
AspectDefaultInputMarkdown file path or pasted textOutputPNG long image + HTML sidecar retained on diskStyleFaithful conversion, mobile-first, zh-CN typographyWidth820px card layout with warm earth-tone themeBrowserLocal Chrome/Chromium/Edge/Brave → Playwright fallback
--input-file or --markdown-text).source.md file when neededoutput_html and output_image pathsScriptPurposescripts/markdown_to_long_image.pyCLI entry point, orchestrates pipelinescripts/render_markdown_mobile_long_image.pyMarkdown → styled mobile HTMLscripts/export_long_image.pyBrowser detection + screenshot export
TopicFilePipeline detailsreferences/workflow.mdCommon issuesreferences/troubleshooting.md
After generating output, verify: