
Markdown Parser & Sanitizer
A powerful API that converts Markdown to sanitized HTML. Our intelligent parser supports GitHub Flavored Markdown, syntax highlighting, heading anchors, and robust XSS protection. Perfect for safely rendering user-generated content, blog posts, documentation, and comment systems.
API Playground
Test the API endpoints with different parameters and see the responses in real-time.
Convert Markdown to sanitized HTML using a GET request with query parameters
Use Case Example
Request Parameters
Required Parameters1
The Markdown content to convert to HTML
Optional Parameters
Whether to sanitize the output HTML to prevent XSS attacks
Whether to add syntax highlighting to code blocks
Whether to add anchor links to headings for easier navigation
Whether to allow HTML tags in the Markdown input (sanitized by default)
Whether to render images in the output HTML
Whether to use GitHub Flavored Markdown (GFM) extensions
Whether to render line breaks as <br> tags
Whether to use SmartyPants to convert quotes, dashes, etc.
Sample Code
curl -X GET "/api/markdown-parser/?markdown=# Hello World
This is **bold** and this is *italic*.
```javascript
console.log("Hello, world!");
```&sanitize=true&highlight_code=false&heading_anchors=false&allow_html=false&allow_images=true&github_flavored=true&breaks=false&smartypants=false" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
Ready-to-use code
YOUR_API_KEY
with your actual API key from your developer dashboard.