{"uid":"cap_5GPWMVxUgSjWDYp6DqcJv","slug":"sitecheck-markdown-to-html-renderer-507669af","name":"SiteCheck Markdown-to-HTML Renderer","description":"Markdown to HTML with GitHub-flavoured tables and strikethrough, heading ids, the list of headings and links, and a word count. Raw HTML in the input is escaped unless allowHtml is true; links and images with javascript:, vbscript: or data: addresses are removed. Pure code, no outbound request. Input up to 200 KB.","url":"https://api.sitecheck-api.workers.dev/api/markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"gfm":{"type":"boolean","description":"GitHub-flavoured Markdown, default true"},"markdown":{"type":"string","description":"The Markdown text, up to 200 KB"},"allowHtml":{"type":"boolean","description":"Keep raw HTML from the input, default false (escaped)"},"headingIds":{"type":"boolean","description":"Give each heading an id, default true"}}},"responseSchema":{"type":"json","example":{"html":"<h1 id=\"pay-per-call\">Pay per call</h1>\n<p>Agents pay <strong>USDC</strong> for each answer, see <a href=\"https://docs.x402.org/introduction\">the docs</a>.</p>\n<h2 id=\"pricing\">Pricing</h2>\n<ul>\n<li>one cent per call</li>\n<li>nothing for failures</li>\n</ul>\n","links":[{"href":"https://docs.x402.org/introduction","text":"the docs"}],"source":"marked 18.0.14, rendered in the Worker (no network)","options":{"gfm":true,"allowHtml":false,"headingIds":true},"headings":[{"id":"pay-per-call","text":"Pay per call","level":1},{"id":"pricing","text":"Pricing","level":2}],"checkedAt":"2026-10-15T06:45:34.601Z","wordCount":20}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HKXPfkYn6_9x00VKt3Rcr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts Markdown text to HTML, extracting headings, links, and word count with configurable GFM and HTML options","exampleAgentPrompt":"Convert this Markdown text to HTML for me — keep GitHub-flavored Markdown on, allow raw HTML through, and add anchor IDs to each heading: '# Hello World\\n\\nThis is a **test** with a [link](https://example.com).'","exampleUseCases":[{"title":"Render README for web display","prompt":"I have this README.md content and I need it rendered as clean HTML with heading anchor IDs so I can embed it in my documentation site — here's the Markdown: '# My Project\\n\\nA **fast** open-source library.\\n\\n## Installation\\n\\nRun `npm install mylib`.'"},{"title":"Extract all links from Markdown doc","prompt":"Parse this Markdown document into HTML and give me all the hyperlinks it contains so I can audit them — use GitHub-flavored Markdown mode: '## Resources\\n\\nSee [the docs](https://docs.example.com) and [GitHub](https://github.com/example).'"},{"title":"Convert blog post draft to HTML","prompt":"Take my Markdown blog post draft and render it to HTML with heading IDs enabled but strip out any raw HTML tags — here's the content: '# My Blog Post\\n\\nToday I want to talk about **AI agents** and how they change everything.\\n\\n## The Future\\n\\nIt looks bright.'"}],"resultDescription":"Returns a JSON object containing: the rendered HTML string, an array of link objects (href + text), an array of heading objects (id, text, level), a word count integer, the renderer version/source string, the options used, and a checkedAt timestamp.","failureModes":["Input markdown exceeds 200 KB limit — request rejected","Malformed JSON body returns error","Empty or missing markdown field may return empty HTML","allowHtml:false causes angle brackets in HTML blocks to be escaped, which may surprise callers expecting raw HTML passthrough"],"whenToPreferThis":"Choose this endpoint when you need a serverless, pay-per-call Markdown-to-HTML conversion with structured extraction of headings and links in a single call, with no external network calls (rendered fully in-worker). Prefer it over rolling your own marked.js invocation when you need the link and heading index alongside the HTML output without extra parsing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:42:37.395Z","isFirstParty":false,"canonicalSlug":"sitecheck-markdown-to-html-renderer-507669af"}