Skip to content
T

Turndown

An HTML to Markdown converter written in JavaScript

by mixmark-ioFree

#356in Utilities
0In stores

Description

Turndown is an HTML to Markdown converter written in JavaScript. You give it HTML, either as a string or as DOM nodes, and it returns Markdo…

Highlights

  • HTML to Markdown conversion
  • Works in Node.js and browsers
  • Options for headings, lists, code and links
  • Custom conversion rules with addRule
  • Accepts DOM nodes as input
  • UMD builds

Ratings & Reviews

No ratings yet

Be the first to rate Turndown.

People also visit

M

MD To - Markdown Converter

Convert Markdown to Word/PDF/HTML/Image in seconds

Developer Tools
Launch
M

markdown-to-html

Convert Markdown documents to HTML

AI Skills
Get
M

Markdown Converter Pro

Free online Markdown converter to PDF/Docx/HTML

Developer Tools
Launch
P

Pdf2md

Browser based tool to convert PDFs to Markdown

Utilities
Launch
M

mdto.page

Convert & share Markdown as beautiful HTML & PDF

Utilities
Launch
T

Typo

Web Based Markdown Editor

Utilities
Launch

Turndown FAQ

What does Turndown do?

It converts HTML into Markdown in JavaScript, in Node.js or in the browser.

How do I install it?

From npm for Node.js, or as a browser script, with UMD builds for RequireJS.

Can I change the output style?

Yes. Options cover heading style, list markers, code blocks, emphasis, strong text and link style.

Can I add my own rules?

Yes. The addRule method adds a conversion rule for a kind of element.

Does it accept DOM nodes?

Yes. Element, document and document fragment nodes are accepted as input.

Was the project renamed?

Yes. The README says to-markdown was renamed to Turndown, and gives a migration guide.

What are the best Turndown alternatives?

Popular alternatives to Turndown include Pdf2md, mdto.page and Typo. See all Turndown alternatives

Developer Stuff

Badges