mdcore.ai Documentation
mdcore.ai is the Markdown API for developers. Render, convert, and normalize Markdown with a single API — powered by a Rust engine compiled to WASM.
Quickstart
Get started with mdcore.ai in your language of choice.
Authentication
All API requests require an API key passed in the Authorization header.
POST/v1/render
Render Markdown into HTML, PNG, or PDF. Supports all flavors including GFM, KaTeX math, Mermaid diagrams, and 190+ languages for syntax highlighting.
Request body
markdownstring · requiredThe Markdown content to render.outputstring · optionalhtml | png | pdf. Default: htmlthemestring · optionalRendering theme. Default: minimal-darkExample
POST/v1/convert
Convert HTML, PDF, DOCX, or any URL to clean Markdown. Perfect for feeding AI pipelines, RAG systems, or content migration.
Request body
sourcestring · requiredURL or base64-encoded file content.formatstring · optionalurl | html | pdf | docx. Auto-detected if omitted.outputstring · optionalAlways markdown.POST/v1/normalize
Normalize Markdown from any flavor to a target spec. Auto-detects the source flavor (GFM, Obsidian, MDX, Pandoc) and converts to your target format.
Request body
markdownstring · requiredThe Markdown content to normalize.source_flavorstring · optionalSource flavor. Default: autotargetstring · optionalcommonmark | gfm | mdcore. Default: gfmJavaScript / TypeScript SDK
Python SDK
Rate Limits
Error Handling
mdcore.ai uses standard HTTP status codes. All error responses include a JSON body with error and message fields.