Markdown renderer
markdown_renderRender Markdown to a sanitised HTML page or fragment, or to a PDF, with tables, fenced code, heading anchors, an optional table of contents and a choice of themes. Cost: 1 credit per call. Output: a file (text/html | application/pdf) returned inline, at most 1 MiB. document.html / fragment.html (text/html; charset=utf-8) or document.pdf. meta: {format, theme, title, headings, bytes, pages?}. pdf costs 3 credits, html and fragment 1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Alias of theme | |
| toc | No | Add a table of contents above the content | |
| theme | No | Built-in stylesheet for html and pdf | default |
| title | No | Page title; default is the first level-1 heading | |
| format | No | html = complete page (1 credit), fragment = content only (1 credit), pdf = A4 document (3 credits) | html |
| markdown | Yes | The Markdown source (up to 1 MB of text) |