Home / Developer Tools / Markdown to Safe HTML & TOC Generator API
Markdown to Safe HTML & TOC Generator API logo

Markdown to Safe HTML & TOC Generator API

Published by @mdforge · Verified
99.98% uptime ~6ms avg AI Score 94/100

Render Markdown into XSS-sanitized HTML, extract heading table-of-contents slugs, word counts, and reading time estimates.

Try it live
https://api.indieapis.com/v1/markdown-html-sanitizer/render
Convert Markdown to XSS-safe HTML with headings and reading time.
Response Press Run to call the live API
{
  "ok": true
}

            

Overview

Render Markdown into XSS-sanitized HTML, extract heading table-of-contents slugs, word counts, and reading time estimates.

Zero-proxy production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.

Gateway Headers & Hard Caps

Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset. When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.

3 endpoints

Base URL
https://api.indieapis.com/v1/markdown-html-sanitizer
MCP
https://indieapis.com/mcp/markdown-html-sanitizer
Method Path Parameters Description
GET /render markdown* Convert Markdown to XSS-safe HTML with headings and reading time.
POST /render markdown* Convert up to 100KB Markdown into sanitized HTML + TOC.
POST /toc markdown* Parse heading levels, anchor slugs, word count, and reading minutes.