Markdown Convert API Documentation
Complete reference for the Markdown Convert API
Authentication
Authorization: Bearer sk_live_your_key_here
POST /v1/markdown/convert
Parameters
| Field | Type | Description |
|---|---|---|
content | string | Content to convert (required, max 100KB) |
action | string | md_to_html (default), html_to_md, md_to_text |
Supported Actions
md_to_html
Converts Markdown to HTML. Supports headings, bold, italic, strikethrough, links, images, code blocks, lists, blockquotes, and horizontal rules.
html_to_md
Converts HTML back to Markdown. Strips scripts/styles, converts semantic tags to Markdown syntax.
md_to_text
Converts Markdown to plain text by stripping all formatting.
Example
curl -X POST "https://snapapis.com/api/v1/markdown/convert" \ -H "Authorization: Bearer YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"action":"md_to_html","content":"# Title\n\nHello **world**"}'