preview_markdown
Render markdown without printing to see the exact 1-bit image that will be produced. Preview the output before sending it to the thermal printer.
Instructions
Render markdown WITHOUT printing. Returns the EXACT 1-bit image that would be printed — preview before print_markdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | "ticket" (default): standalone ticket with margins and trailing paper feed. "continuous": typewriter/log mode — zero top/bottom margins, NO trailing feed, so chunks printed across separate calls join seamlessly into one document; send one complete markdown block per call (incomplete chunks are rejected before printing); press the printer's FEED button after tearing to restore a margin. | |
| size | No | type size tier. "medium" (19px) is the RECOMMENDED default — use it for almost everything. "large" (24px) for headlines / very short notes. "small" (14px) ONLY for genuinely dense or long content (it is noticeably harder to read on thermal paper) — do NOT default to small. | |
| markdown | Yes | GitHub-flavored markdown with advanced features: syntax-highlighted code fences (monochrome: bold keywords, italic strings/comments), ```mermaid diagrams, LaTeX math ($inline$ and $$block$$), checkbox task lists, tables, remote images (auto-dithered). Rendered with a built-in minimalist high-contrast stylesheet (h1 = white-on-black rounded banner, bordered rounded blockquotes/code, dashed hr). Fastest way to print; use the html tools for full custom design. Call design_guide first for size/style guidance. |