smartpage

Convert Markdown into a single A4 page with auto-fit font sizing and themes.

7|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/fxjhello/SmartPage --skill smartpage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smartpage
Source: https://github.com/fxjhello/SmartPage/tree/main
Command: npx skills add https://github.com/fxjhello/SmartPage --skill smartpage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert Markdown into a print-ready single-page A4 layout without manual font-size tweaking, so your content always fits neatly on one page.

Core Features & Use Cases

  • Auto-fit font sizing: Uses binary search to find the largest font size that still fits within A4 boundaries.
  • Multiple visual themes: Renders the same content with 10+ built-in themes for different styles (classic, academic, noir, etc.).
  • One-command exports: Produces output as PDF, PNG, and a saved Markdown file for further editing or reuse.

Quick Start

Ask the tool to render your Markdown file into a single A4 page by running npx smartpage input.md --theme classic --output-dir ./out.

Frequently Asked Questions about smartpage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fit Markdown content onto a single A4 page for PDF export?

To fit Markdown onto a single A4 page, the tool automatically uses binary search to find the optimal font size that keeps your content within strict print boundaries, then exports the result as a PDF.

Can I render Markdown with different document themes before exporting to PNG?

Yes, you can render Markdown with over 10 built-in visual themes, such as classic, academic, and noir, allowing you to style your single-page A4 document before exporting it to PNG.

What is the best way to auto-layout a Markdown resume for one-page print constraints?

The best way to auto-layout a Markdown resume for one-page print constraints is using a binary-search font fitting mechanism that automatically scales text to fit exactly within A4 boundaries.

Does smartpage require a headless browser to export Markdown to PDF and PNG?

Yes, smartpage requires headless browser rendering to reliably apply theme styling, execute binary-search font fitting, and export the final single-page A4 document to PDF and PNG formats.

What types of documents are suitable for single-page A4 Markdown auto-layout?

Single-page A4 Markdown auto-layout is suitable for resumes, memos, and lecture handouts that must adhere to strict single-page print constraints without manual font-size tweaking.