HTML to Markdown
Pricing
$3.00/month + usage
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
$3.00/month + usage
Rating
0.0
(0)
Developer

Web Harvester
Maintained by Community
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 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