VOOZH about

URL: https://apify.com/junipr/markdown-to-html

โ‡ฑ Markdown to HTML Converter - GFM & Themes ยท Apify


Pricing

from $1.30 / 1,000 document converteds

Go to Apify Store

Markdown to HTML Converter

Convert Markdown to styled HTML with GFM support, syntax highlighting, tables, task lists. Choose GitHub, Dark, or Minimal theme. Code blocks with language highlighting. Full document or fragment output.

Pricing

from $1.30 / 1,000 document converteds

Rating

0.0

(0)

Developer

๐Ÿ‘ junipr

junipr

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Share

What does Markdown to HTML Converter do?

Markdown to HTML Converter transforms Markdown text into styled, ready-to-use HTML. Provide Markdown content directly or point to a URL containing a Markdown file, and the actor produces a complete HTML document with your choice of theme, syntax highlighting for code blocks, and support for GitHub Flavored Markdown features like tables, task lists, and strikethrough text.

The output can be a full HTML document with <!DOCTYPE html> wrapper or a bare HTML fragment for embedding into existing pages. Two built-in themes are available (GitHub and Minimal), plus the option to inject custom CSS. The converted HTML is saved to the key-value store for direct download and also pushed to the dataset with conversion metadata.

Features

  • Two input methods โ€” paste Markdown directly or fetch from a URL
  • Safety caps โ€” default max input size is 100,000 characters, configurable up to 250,000
  • GitHub Flavored Markdown โ€” tables, task lists, strikethrough, autolinks, and line breaks
  • Syntax highlighting โ€” automatic code block highlighting powered by highlight.js with language detection
  • Built-in themes โ€” GitHub theme (clean, modern, familiar) or Minimal theme (serif, reading-focused)
  • Custom CSS โ€” inject additional CSS for branding or custom styling
  • Fragment or document โ€” output a complete HTML page or just the HTML body fragment
  • Zero-config โ€” runs with a sample Markdown document if no input is provided
  • Direct download โ€” HTML output saved to key-value store as a downloadable file
  • Pay-per-conversion pricing โ€” charged per document converted

Input Configuration

{
"markdown":"# Hello World\n\nThis is **bold** and *italic* text.\n\n```javascript\nconsole.log('Hello!');\n```",
"markdownUrl":"",
"maxMarkdownCharacters":100000,
"theme":"github",
"includeStyles":true,
"syntaxHighlight":true,
"wrapInHtmlDocument":true,
"gfm":true,
"customCss":""
}
ParameterTypeDefaultDescription
markdownstring""Raw Markdown text to convert. Takes priority over markdownUrl.
markdownUrlstring""URL to a Markdown file to fetch and convert
maxMarkdownCharactersinteger100000Maximum markdown characters per run, capped at 250,000
themestring"github"CSS theme: github, minimal, or none
includeStylesbooleantrueInclude CSS styles in the output
syntaxHighlightbooleantrueEnable code block syntax highlighting
wrapInHtmlDocumentbooleantrueWrap output in a complete HTML document. Set to false for HTML fragment.
gfmbooleantrueEnable GitHub Flavored Markdown (tables, task lists, strikethrough)
customCssstring""Additional CSS to append to the output

Output Format

The dataset contains conversion metadata and the full HTML output:

{
"inputLength":245,
"outputLength":1847,
"theme":"github",
"syntaxHighlight":true,
"gfm":true,
"wrapInHtmlDocument":true,
"html":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>...</head>\n<body>\n<article class=\"markdown-body\">\n<h1>Hello World</h1>\n<p>This is <strong>bold</strong> and <em>italic</em> text.</p>\n</article>\n</body>\n</html>",
"scrapedAt":"2026-03-11T12:00:00.000Z"
}

The complete HTML file is also saved to the key-value store under the key OUTPUT with content type text/html, making it directly downloadable and viewable in a browser.

Usage Examples / Use Cases

  • Documentation publishing โ€” convert Markdown docs, READMEs, and changelogs to styled HTML pages
  • Blog content โ€” transform Markdown blog posts into HTML with syntax-highlighted code blocks
  • Email templates โ€” generate HTML fragments from Markdown for use in email campaigns
  • Static site generation โ€” batch-convert Markdown files to HTML as part of a build pipeline
  • Report formatting โ€” produce presentable HTML reports from Markdown source files
  • Apify pipeline step โ€” chain with other actors to convert scraped Markdown content to HTML

Pricing

This actor uses Pay-Per-Event (PPE) pricing: $1.30 per 1,000 documents converted ($0.0013 per event).

Pricing includes all platform compute costs โ€” no hidden fees.

FAQ

What is the difference between the GitHub and Minimal themes?

The GitHub theme replicates the look of GitHub's Markdown rendering with a sans-serif font, 980px max width, bordered headings, and striped tables. The Minimal theme uses a serif font (Georgia), narrower 700px width, and a cleaner reading-focused layout. Choose none for unstyled HTML and provide your own CSS via the customCss field.

Does this sanitize raw HTML inside Markdown?

No. This actor converts Markdown to HTML and preserves raw inline HTML supported by the Markdown parser. If you render output from untrusted users in a browser, sanitize the HTML in your application before embedding it.

Can I get just the HTML body without the full document wrapper?

Yes. Set wrapInHtmlDocument to false and the actor will output only the HTML body content (with optional <style> block). This is useful when you need to embed the converted HTML inside an existing page or template.

What programming languages are supported for syntax highlighting?

The actor uses highlight.js, which supports over 190 programming languages. If a language is specified in the Markdown code fence (e.g., ```python), it uses that language's highlighter. If no language is specified, highlight.js automatically detects the language.

Does this actor need a proxy?

No. Markdown to HTML Converter is a document transformation tool. When fetching from a URL, it makes a single HTTP request to download the Markdown file. No proxy is needed and it works on any Apify plan including the free tier.

Can I convert multiple Markdown files in one run?

The actor processes one Markdown document per run. For batch conversion, use the Apify API to trigger multiple runs programmatically, or chain it with another actor that produces Markdown content.

Related Actors

You might also like

Data Converter โ€” JSON, CSV & XML

accurate_pouch/data-converter

Convert between JSON, CSV, and XML formats in bulk. JSON to CSV, CSV to JSON, JSON to XML, XML to JSON. Handles quoted fields, nested objects. $0.003/conversion.

๐Ÿ‘ User avatar

Manchitt Sanan

2

Markdownify MCP Server

crawlerbros/markdownify-mcp-server

Convert any webpage to clean, formatted Markdown perfect for AI consumption. Ideal for building knowledge bases, documentation scrapers, and content migration tools.

18

5.0

(2)

RAG Web Browser Scraper

datapilot/rag-web-browser-scraper

RAG Web Browser Search & Crawl Actor uses to search Bing or crawl URLs, then extracts page content as clean markdown. It captures title, description, language, HTTP status, and structured metadata. Supports multiple queries, proxies, and outputs organized crawl + search results.

HTML to Markdown

web.harvester/html-to-markdown

Convert HTML to clean Markdown. Supports GFM tables, code blocks, and custom rules. Perfect for content migration and documentation.

3

Pandoc Document Converter

incredible_moment/pandoc-actor

Universal document converter. Transform Markdown, HTML, and text to PDF, DOCX, EPUB, and more. High-performance Rust wrapper for the Pandoc engine ensures fast execution and low memory footprint.

10

Html to Markdown Converter

antonio_espresso/html-to-markdown-converter

Crawl a target URL and convert its HTML content into clean, structured Markdown with optional heading-based chunking.

39

Html To Markdown Converter ๐Ÿ“„

powerful_bachelor/html-to-markdown-converter

๐Ÿ“„โœจ HTML to Markdown Converter transforms web pages into clean, portable Markdown. Simply input a URL to extract content while preserving structure, formatting, and media elements.๐Ÿ”„ Perfect for content repurposing, documentation, and creating readable, platform-independent text from any webpage! ๐Ÿš€

๐Ÿ‘ User avatar

Powerful Bachelor

36

HTML to Markdown Converter - Bulk Web Content to MD

santamaria-automations/html-to-markdown

Extract main article content from any website and convert to clean Markdown including headings, links, images, tables, and code blocks. Perfect for LLM training, AI pipelines, and documentation. Export data, run via API, schedule and monitor runs, or integrate with other tools.

RAG-Ready Markdown Converter & Chunker

foxpink/apify-rag-markdown-chunker

Convert raw HTML/text into clean Markdown and split into ready-to-ingest chunks for RAG pipelines, Vector DBs, and LLM fine-tuning workflows.

๐Ÿ‘ User avatar

Nguyแป…n Anh Duy

3

4.7

(3)

Web Scraper RAG Ready

traorealexy/Web-Sraper-RAG-Ready

Turn any website into clean, token-efficient Markdown ready for RAG and LLM pipelines. Removes boilerplate, handles JavaScript rendering, and outputs structured JSON for LangChain, LlamaIndex, and vector databases.