HTML to Markdown
Pricing
from $2.00 / 1,000 result (converted page)s
Go to Apify Store
HTML to Markdown
Convert HTML to clean Markdown. Supports GFM tables, code blocks, and custom rules. Perfect for content migration and documentation.
Pricing
from $2.00 / 1,000 result (converted page)s
Rating
0.0
(0)
Developer
Web Harvester
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
2
Monthly active users
12 days ago
Last modified
Categories
Share
๐ Convert HTML to clean Markdown. Supports GFM tables, code blocks, and custom formatting. Perfect for content migration.
๐ฏ What This Actor Does
Convert HTML to Markdown:
- GFM Tables - HTML tables โ Markdown tables
- Code Blocks - Fenced or indented
- Headings - ATX (#) or Setext (underlined)
- Lists - Customizable bullet markers
- Clean Output - Readable Markdown
๐ Use Cases
| Use Case | Description |
|---|---|
| Content Migration | Move HTML to Markdown-based CMS |
| Documentation | Convert HTML docs to MD |
| Web Scraping | Extract content as Markdown |
| Blog Import | Import HTML posts |
| Archive | Store web content as MD |
| Git Wikis | Convert HTML wikis |
๐ฅ Input Examples
Basic Conversion
{"html": "<h1>Title</h1><p>Content</p>","headingStyle": "atx"}
From URL
{"htmlUrl": "https://example.com/page.html","gfmTables": true}
Custom Formatting
{"html": "<ul><li>Item</li></ul>","bulletListMarker": "*","codeBlockStyle": "fenced"}
โ๏ธ Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
html | string | - | HTML content |
htmlUrl | string | - | URL to HTML page |
headingStyle | string | atx | atx (#) or setext (underlined) |
codeBlockStyle | string | fenced | fenced (```) or indented |
bulletListMarker | string | - | -, *, or + |
gfmTables | boolean | true | Convert tables to GFM |
keepImages | boolean | true | Convert img tags |
keepLinks | boolean | true | Convert a tags |
๐ค Output
{"inputLength": 200,"outputLength": 150,"headingStyle": "atx","markdown": "# Title\n\nContent here...","markdownUrl": "https://api.apify.com/v2/..."}
๐ Conversion Examples
Headers
<h1>Title</h1> โ # Title<h2>Subtitle</h2> โ ## Subtitle
Text Formatting
<strong>bold</strong> โ **bold**<em>italic</em> โ *italic*<code>code</code> โ `code`
Lists
<ul><li>Item</li></ul> โ - Item<ol><li>First</li></ol> โ 1. First
๐ฐ Cost Estimation
| Size | Approx. Time | Compute Units |
|---|---|---|
| 10 KB | ~1 second | ~0.001 |
| 100 KB | ~2 seconds | ~0.003 |
๐ง Technical Details
- Language: TypeScript / Node.js 22
- Library: Turndown 7.x
- Memory: 128MB-256MB
๐ License
MIT License - see LICENSE for details.
๐ช Apify Store Listing
Keywords: html to markdown, html to md, turndown, html converter, markdown converter, content migration, gfm