HTML to Markdown avatar

HTML to Markdown

Pricing

$3.00/month + usage

Go to Apify Store
HTML to Markdown

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

Web Harvester

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Share

πŸ”„ Convert HTML to clean Markdown. Supports GFM tables, code blocks, and custom formatting. Perfect for content migration.

Apify Actor License: MIT

🎯 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 CaseDescription
Content MigrationMove HTML to Markdown-based CMS
DocumentationConvert HTML docs to MD
Web ScrapingExtract content as Markdown
Blog ImportImport HTML posts
ArchiveStore web content as MD
Git WikisConvert 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

ParameterTypeDefaultDescription
htmlstring-HTML content
htmlUrlstring-URL to HTML page
headingStylestringatxatx (#) or setext (underlined)
codeBlockStylestringfencedfenced (```) or indented
bulletListMarkerstring--, *, or +
gfmTablesbooleantrueConvert tables to GFM
keepImagesbooleantrueConvert img tags
keepLinksbooleantrueConvert 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

SizeApprox. TimeCompute 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