Render Carve
carve_renderConvert Carve documents to HTML, Markdown, plain text, or ANSI with loss reporting. Choose presets, extensions, and sanitization for safe, controlled rendering.
Instructions
Render Carve to HTML, Markdown, plain text, or ANSI terminal text, with loss reporting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | portable lowercases IDs and transliterates where possible; static-html is HTML-only. | default |
| source | Yes | Document source (maximum 1000000 UTF-8 bytes) | |
| target | Yes | ||
| extensions | No | Opt-in extensions; semantic-spans is HTML-only. | |
| allowRawHtml | No | Pass trusted raw HTML through on HTML output. Disabled by default. | |
| sanitizeUrls | No | Report blocked authored URL schemes as render losses. A dangerous scheme is always blanked; this server never emits one. | |
| strictLosses | No | Fail instead of returning output when a raw-format node would be dropped. | |
| asciiHeadingIds | No | Heading ID policy; explicit values override the preset. | |
| maxRenderLosses | No | Maximum detailed losses to return. | |
| smartTypography | No | false is source; { quotes: false } keeps typed quotes only. | |
| lowercaseHeadingIds | No | Lowercase generated heading IDs; explicit values override the preset. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| losses | Yes | ||
| truncated | Yes | ||
| totalLosses | Yes |