{"uid":"cap_xCqVJyFgrnYUbAityy_2J","slug":"markdown-to-html-renderer-6b25ad29","name":"Markdown to HTML Renderer","description":"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.","url":"https://markdown.openverbs.com/v1/render","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"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_EHbZSByIKrTDTeWgf8r6J","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":"Renders GitHub-Flavored Markdown source text to sanitized HTML, with optional raw HTML passthrough","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"README preview in web app","prompt":"Take this README.md content and render it as sanitized HTML so I can display it safely in the browser: '# My Project\\n\\nInstall with `npm install mypackage`.\\n\\n## Features\\n- Fast\\n- Reliable'"},{"title":"Blog post content pipeline","prompt":"I have a blog post written in Markdown — can you convert it to HTML? Here it is: '## Introduction\\n\\nWelcome to my blog. Today we discuss **async/await** in JavaScript.' Keep sanitization on so no scripts slip through."},{"title":"Render user-submitted markdown safely","prompt":"A user submitted this Markdown comment and I need to display it on the page without XSS risk — render it to HTML with full sanitization enabled: '### Great post!\\n\\nI loved the section on [closures](https://example.com). <script>alert(1)</script>'"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:21.642Z","isFirstParty":false}