{"uid":"cap_1lpyMf9s2aWnXCAHYvFue","slug":"leo-shi-markdown-to-html-converter-b524ebac","name":"Leo Shi Markdown to HTML Converter","description":"一个人的思考、创作与成长记录。关于生活、技术、商业和一切有趣的事。","url":"https://leoshi-blog.vercel.app/api/tools/md2html","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"markdown":{"type":"string","description":"Markdown text to convert"}}},"responseSchema":{"type":"json","example":{"html":"<h1>Hello</h1>\n<p>World</p>"}},"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_4HHWSEJ0dBS7ZrnymC4bq","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 input into rendered HTML output","exampleAgentPrompt":"Convert this markdown text to HTML for me: '# Hello World\\n\\nThis is a **bold** statement and here is a [link](https://example.com).'","exampleUseCases":[{"title":"Blog post rendering pipeline","prompt":"I have a blog post written in Markdown — can you convert it to HTML so I can embed it in my website? Here's the content: '## My Thoughts\\n\\nThis is a *great* article with a [reference](https://example.com).'"},{"title":"README to HTML for documentation","prompt":"Take this README markdown and convert it to HTML so I can display it in my app's help section: '# Getting Started\\n\\n1. Install dependencies\\n2. Run `npm start`\\n3. Open your browser'"},{"title":"Dynamic content preview generation","prompt":"I need to preview this markdown snippet as HTML before publishing: '> Blockquote here\\n\\n**Bold text** and _italic_ with a list:\\n- item one\\n- item two'"}],"resultDescription":"Returns a JSON object containing an 'html' field with the fully rendered HTML string converted from the input Markdown, including proper HTML tags for headings, paragraphs, bold, italic, links, lists, and other standard Markdown elements.","failureModes":["Empty or missing markdown input body may return an error or empty html field","Malformed request body (non-string markdown) may result in a 400-level error","Extremely large markdown documents may time out or be rejected","Payment failure (insufficient USDC) will block the request via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use Markdown-to-HTML conversion without managing your own rendering library or server-side markdown parser. Ideal for lightweight pipelines that occasionally need markdown rendered and want to avoid bundling a full markdown library dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:41:54.111Z","isFirstParty":false}