Universal Markdown-to-Apple-Pages formatting skill for Apple Flow. Use when converting `.md` files into polished `.pages` documents with accurate structure (headings, lists, tables, code blocks, links) and clean business-ready styling.
Use this skill to turn markdown into polished Apple Pages documents quickly.
Primary command:
apple-flow tools pages_from_markdown <input.md|-> [output.pages] [--theme auto|neutral|minimal|corporate|legal|proposal] [--style auto|neutral] [--title-page auto|off] [--toc auto|off] [--citations auto|off] [--images auto|off] [--image-max-width N] [--page-break-marker TEXT] [--qa true|false] [--export none|pdf|docx|pdf,docx] [--overwrite true|false]Related commands:
apple-flow tools pages_update_sections <base.md|-> <updates.md> <output.pages> [--sections "A,B"] [same render flags]apple-flow tools pages_template <research|contract|proposal> [output.md] [--overwrite true|false]same-name.pages):apple-flow tools pages_from_markdown \
"/abs/path/proposal.md"
apple-flow tools pages_from_markdown \
"/abs/path/contract.md" \
"/abs/path/client-contract.pages" \
--theme legal \
--title-page on \
--toc on \
--overwrite true
apple-flow tools pages_from_markdown \
"/abs/path/notes.md" \
"/abs/path/notes.pages" \
--style neutral \
--overwrite true
cat <<'MD' | apple-flow tools pages_from_markdown - "/abs/path/ai-agent-systems.pages" --style auto --overwrite true
# AI Agent Systems Report
## Executive Summary
...
## Landscape
...
MD
apple-flow tools pages_from_markdown \
"/abs/path/research.md" \
"/abs/path/research.pages" \
--theme corporate \
--toc on \
--citations on \
--qa true \
--export pdf,docx \
--overwrite true
apple-flow tools pages_update_sections \
"/abs/path/base-proposal.md" \
"/abs/path/updates.md" \
"/abs/path/final-proposal.pages" \
--sections "Executive Summary,Timeline,Risks" \
--theme proposal \
--overwrite true
apple-flow tools pages_template proposal "/abs/path/proposal-template.md"
When user asks:
Use this sequence:
pages_from_markdown (or save .md then convert)..pages path plus short summary.#, ##, ###)---, ***, ___)- to read markdown from stdin..pages.<input_basename>.pages in the same directory.--overwrite true.pages_template outputs .md files (not .pages).input file not found:
output exists and overwrite=false:
--overwrite true or choose another output path.Application isn’t running / AppleScript errors:
textutil conversion failed:
textutil availability and source markdown readability."ok": true.output_path points to a real .pages file.