# Markdown to HTML Renderer

> Markdown to HTML Renderer is a paid API for AI agents from markdown.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Renders GitHub-Flavored Markdown source text to sanitized HTML, with optional raw HTML passthrough

## Facts

- Endpoint: POST https://markdown.openverbs.com/v1/render
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/markdown-to-html-renderer-6b25ad29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCqVJyFgrnYUbAityy_2J

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability markdown-to-html-renderer-6b25ad29 -d '<json body>'
```

Example prompt: Convert this GitHub-Flavored Markdown to HTML for me — keep the output sanitized so scripts and event handlers are stripped: '# Hello World\n\nThis is **bold** and _italic_ text.'

## When to prefer this

Choose this endpoint when you need server-side GitHub-Flavored Markdown rendering with built-in XSS sanitization, particularly for user-generated content pipelines or documentation display. It is ideal when you want a simple, stateless conversion with no dependency on a full rendering library in your environment, and when safety (script stripping) is important. Prefer it over client-side rendering when you need consistent, server-authoritative HTML output or when the runtime environment cannot execute JavaScript-based markdown parsers.

## Known failure modes

- Markdown input exceeds 500,000 character limit — request rejected
- Missing required 'markdown' field in request body — validation error
- Invalid JSON body or incorrect bodyType — parse error
- Network timeout for very large documents
- Payment failure via x402 protocol — request not processed

## How this service works

Render GitHub-Flavored Markdown to HTML. Output is sanitized by default (scripts, event handlers and javascript: URLs removed); set sanitize=false to keep raw HTML.

## Output

Returns rendered HTML converted from the provided GitHub-Flavored Markdown source. By default, the HTML is sanitized — inline scripts, event handler attributes, and javascript: URLs are stripped out. If sanitize is set to false, the raw rendered HTML including any embedded HTML tags from the source is returned as-is.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "markdown"
     ],
     "properties": {
      "markdown": {
       "type": "string",
       "maxLength": 500000,
       "description": "Markdown source."
      },
      "sanitize": {
       "type": "boolean",
       "description": "Sanitize the rendered HTML. Default true."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/markdown-to-html-renderer-6b25ad29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markdown.openverbs.com](https://www.zero.xyz/host/markdown.openverbs.com/llms.txt)
