Markdown to HTML
Convert Markdown content to HTML format.
Endpoint
POST https://www.acrewity.com/api/services/execute
Authentication
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
n8n Integration
This service is also available via our n8n community node: @acrewity/n8n-nodes-acrewity
Operations
Convert Markdown to HTML
Convert Markdown to HTML with GitHub Flavored Markdown support and syntax highlighting
Operation ID: convert
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
content |
string | Yes | - | Markdown content to convert |
include_styles |
boolean | No | true |
Include CSS styles in the HTML output |
highlight_code |
boolean | No | true |
Apply syntax highlighting to code blocks |
gfm |
boolean | No | true |
Enable GitHub Flavored Markdown |
breaks |
boolean | No | false |
Convert line breaks to tags |
Example Request
{
"service": "markdown-to-html",
"operation": "convert",
"parameters": {
"content": "# Welcome to Our Platform\n\nHere's what you can do:\n\n- **Create** new projects\n- **Collaborate** with your team\n- **Deploy** with one click\n\n```javascript\nconst greeting = 'Hello, World!';\nconsole.log(greeting);\n```\n\n> Pro tip: Use keyboard shortcuts for faster navigation.",
"include_styles": true,
"highlight_code": true
}
}
Example Response
{
"success": true,
"result": {
"data": {
"html": "<html><head><style>/* CSS styles */</style></head><body><h1>Welcome to Our Platform</h1>..."
}
},
"credits_used": 1
}
Convert Markdown Fragment
Convert Markdown fragment to HTML without wrapping in full HTML document
Operation ID: fragment
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
content |
string | Yes | - | Markdown fragment to convert |
gfm |
boolean | No | true |
Enable GitHub Flavored Markdown |
breaks |
boolean | No | false |
Convert line breaks to tags |
Example Request
{
"service": "markdown-to-html",
"operation": "fragment",
"parameters": {
"content": "Check out our **new features**:\n\n1. Real-time sync\n2. Dark mode\n3. Export to PDF",
"gfm": true
}
}
Example Response
{
"success": true,
"result": {
"data": {
"html": "<p>Check out our <strong>new features</strong>:</p><ol><li>Real-time sync</li><li>Dark mode</li><li>Export to PDF</li></ol>"
}
},
"credits_used": 1
}
More Examples
See Data Transformation Examples for complete workflow examples including email rendering and CMS integration.