Render markdown into FlatWrite-styled HTML <head> and <body> fragments, with optional typography and page-layout controls. Provide either the raw markdown inline (`markdown`) or an allowlisted URL (`markdownUrl`) pointing to raw markdown content. Use this when you need the rendered HTML artifacts.
Flatwrite Md source site12 tools on this site
What this tool does
Render markdown into FlatWrite-styled HTML <head> and <body> fragments, with optional typography and page-layout controls. Provide either the raw markdown inline (`markdown`) or an allowlisted URL (`markdownUrl`) pointing to raw markdown content. Use this when you need the rendered HTML artifacts. Use it on Flatwrite Md with an agent. It runs in the browser on the website and needs no package install.
How to install
Open the flatwrite.md website and ask your browser agent to use render_markdown
Run with an agent
Use the render_markdown tool on flatwrite.md with markdown: <string>, markdownUrl: <string>, font: <string>, appFramework: <string>, size: <string>, weight: <string>, line: <string>, uiZoom: <number>, pageSize: <string>, orientation: <string>, marginsLR: <string>, marginsTB: <string>, footer: <boolean>, width: <number>, docEngine: <string>, surfaceMode: <string>, theme: <string>. Return the structured result and cite the source page.
Input contract
markdownstringRaw markdown content to render.
markdownUrlstringURL pointing to raw markdown content. Must be on an allowlisted host (raw.githubusercontent.com, raw.gitlab.com, bitbucket.org), http(s) only, and <=1 MB. Host validation is enforced server-side.
fontstringFont family — must be a bundled family.
appFrameworkstringUI framework applied when surfaceMode="app".
sizestringFont size as a scale token (e.g. "-1", "0", "1").
weightstringFont weight as a scale token (e.g. "-1", "0").
linestringLine height as a scale token (e.g. "-1", "0", "1").
pageSizestringPage size for paged output. Only effective when docEngine is pagedjs or vivliostyle.
orientationstringPage orientation.
marginsLRstringLeft/right page margin preset. Only effective when docEngine is pagedjs or vivliostyle.
marginsTBstringTop/bottom page margin preset. Only effective when docEngine is pagedjs or vivliostyle.
footerbooleanInclude a page-number footer in paged output.
widthnumberContent width in pixels (400..1400). Only effective when docEngine="none".
docEnginestringDocument engine — "none" emits plain CSS; "pagedjs"/"vivliostyle" wrap the output in @page rules.
surfaceModestringSurface mode hint. "app" unlocks the appFramework picker; otherwise this is metadata only.
themestringTheme identifier rendered as body[data-theme="..."] so consumer CSS can theme via attribute selectors. Free-form (alphanumeric, dash, underscore) — common values are "light" and "dark".
Verify the live listing at the source before a production call. Fields marked as a starter contract may differ from what the site expects.