{"uid":"cap_K11Rmf5xsudxPaihIWSbS","slug":"saylor-innovations-markdown-to-html-converter-674d1fa3","name":"Saylor Innovations Markdown to HTML Converter","description":"Render Markdown to escaped, safe HTML with heading anchors, links, images and lists, plus the heading outline, link list, word count and reading time","url":"https://saylorinnovations.com/api/convert/markdown-to-html?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["markdown"],"properties":{"markdown":{"type":"string","description":"Markdown text, up to 12000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["html","headings"],"properties":{"html":{"type":"string","description":"Rendered HTML with all input HTML escaped"},"note":{"type":"string","description":"Caveat or context for reading the result"},"safe":{"type":"boolean","description":"True because input HTML is escaped and unsafe URL schemes are dropped"},"links":{"type":"array","items":{"type":"object","properties":{"url":{"type":["string"]},"text":{"type":["string"]}},"additionalProperties":true},"description":"Related links"},"words":{"type":"number","description":"Words"},"images":{"type":"array","description":"Images found with alt text and URL"},"source":{"type":"string","description":"Data source the values come from"},"headings":{"type":"array","items":{"type":"object","properties":{"id":{"type":["string"]},"text":{"type":["string"]},"level":{"type":["integer"]}},"additionalProperties":true},"description":"Heading outline with level, text and anchor id"},"checked_at":{"type":["string"]},"reading_minutes":{"type":"number","description":"Reading, in minutes"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o-nX8kx8gDB461paITyJ7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 safe, escaped HTML with heading anchors, plus extracts heading outline, links, images, word count, and reading time","exampleAgentPrompt":"Can you convert this markdown text to safe HTML for me and also tell me how long it would take to read? Here's the markdown: '# Hello World\\n\\nThis is a **test** paragraph with a [link](https://example.com).'","exampleUseCases":[{"title":"Blog post HTML rendering pipeline","prompt":"I've written this blog post in Markdown and need it converted to safe HTML with heading anchors so I can embed it in my CMS — also give me the heading outline and estimated reading time so I can display those on the page."},{"title":"Document word count and outline extraction","prompt":"Take this markdown document and tell me the word count, reading time, and give me the full heading outline with anchor IDs so I can build a table of contents sidebar."},{"title":"Link and image audit for markdown content","prompt":"I have a markdown article and I want to see every link and image it contains listed out, along with the rendered HTML — can you run this through the markdown converter?"}],"resultDescription":"Returns a JSON object containing: escaped safe HTML string (with heading anchors and sanitized URLs), a headings array (each with level, text, and anchor ID), a links array, an images array (each with alt text and URL), a word count number, a reading_minutes number, a safe boolean (always true), and an optional note or source field providing context about the conversion.","failureModes":["Markdown exceeding 12,000 characters may be rejected or truncated","Missing required 'markdown' query parameter returns an error","Malformed GET request without query parameters fails","Extremely complex markdown with deeply nested structures may produce unexpected HTML output","Network or payment (x402) failures result in no response"],"whenToPreferThis":"Choose this endpoint when you need server-side, safe Markdown-to-HTML rendering with guaranteed HTML escaping (no XSS risk), heading anchor generation, and automatic metadata extraction (outline, links, images, word count, reading time) in a single call. Prefer it over client-side renderers when security and content metadata are both required without additional parsing steps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T18:36:50.761Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-markdown-to-html-converter-674d1fa3"}