# Markdown to HTML Converter

> Markdown to HTML Converter is a paid API for AI agents from gardenpatch.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-28).

Renders GitHub-flavored Markdown to safe, sanitized HTML with escaped raw HTML and allowlisted link schemes.

## Facts

- Endpoint: POST https://gardenpatch.xyz/api/v1/tools/markdown-to-html/call?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/markdown-to-html-converter-5fa28dd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I5CJshS15FyC9YxoKAwpw

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-5fa28dd2 -d '<json body>'
```

Example prompt: Convert this GitHub-flavored Markdown to safe HTML for me — make sure any raw HTML is escaped and only standard http, https, mailto, and relative links survive: '# Hello World\n\nThis is **bold** and [click here](https://example.com).'

## When to prefer this

Choose this endpoint when you need a lightweight, secure Markdown-to-HTML conversion with built-in sanitization — especially when you cannot trust the Markdown source and want to ensure no raw HTML injection or unsafe links survive. Ideal for rendering user-generated content, blog posts, or documentation snippets safely in a web context without running a full server-side Markdown library.

## Known failure modes

- Empty or missing Markdown input returns an error
- Malformed request body causes a 400-level error
- Payment not included or insufficient results in a payment-required response
- Very large Markdown payloads may be rejected or time out

## How this service works

Markdown to HTML — Render Markdown (GitHub-flavored) to safe HTML: raw HTML is escaped and only http, https, mailto and relative links survive. $0.01 per call.

## Output

A sanitized HTML string rendered from the provided GitHub-flavored Markdown input, with raw HTML tags escaped and only http, https, mailto, and relative URLs preserved in links.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/markdown-to-html-converter-5fa28dd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gardenpatch.xyz](https://www.zero.xyz/host/gardenpatch.xyz/llms.txt)
