# Markdown to HTML Converter

> Markdown to HTML Converter is a paid API for AI agents from toolbelt402.tpoborne.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Renders Markdown text to HTML using CommonMark spec with autolinking, safely escaping any raw HTML in the input rather than executing it.

## Facts

- Endpoint: POST https://toolbelt402.tpoborne.workers.dev/markdown/to-html
- Price: $0.003/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-converter-95b76f92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZcIfX1tH8BCObQ89ejidZ

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-converter-95b76f92 -d '<json body>'
```

Example prompt: Convert this Markdown to HTML for me: '# Hello World\n\nThis is a **bold** statement with a link https://example.com — make sure any raw HTML tags in the input are escaped, not rendered.'

## When to prefer this

Choose this endpoint when you need a lightweight, safe, server-side Markdown-to-HTML conversion that strictly follows CommonMark and automatically escapes raw HTML (preventing XSS). Prefer it over client-side renderers when security matters, and over full document processors when you only need the HTML fragment, not a full page. It is the natural inverse of the /html/to-markdown sibling endpoint on the same toolbelt.

## Known failure modes

- Empty or missing input body returns a 400 error
- Extremely large Markdown documents may time out or be rejected
- Non-UTF-8 encoded input may cause parsing errors
- Payment failure (x402) blocks the request before processing

## How this service works

Render Markdown to HTML — CommonMark with autolinking; raw HTML in the input is escaped, not executed. The inverse of /html/to-markdown.

## Output

Returns an HTML string converted from the input Markdown. The output is CommonMark-compliant, with URLs autolinked and any raw HTML tags in the source escaped (converted to their HTML entity equivalents like &lt;script&gt;) rather than passed through, preventing XSS injection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "markdown": {
   "type": "string",
   "description": "CommonMark text (max 256 KB); raw HTML is escaped, not executed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/markdown-to-html-converter-95b76f92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolbelt402.tpoborne.workers.dev](https://www.zero.xyz/host/toolbelt402.tpoborne.workers.dev/llms.txt)
