Socket
Socket
Sign inDemoInstall

turndown

Package Overview
Dependencies
2
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turndown

A library that converts HTML to Markdown


Version published
Weekly downloads
508K
decreased by-20.84%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Turndown

Convert HTML into Markdown.

Note this is pre-release software. API changes are likely.

Usage

var turndownService = new TurndownService()
var markdown = turndownService.turndown('<h1>Hello world!</h1>')

Options

Options can be passed in to the constructor on instantiation.

OptionValid valuesDefault
headingStylesetext or atxsetext
hrAny Thematic break* * *
bulletListMarker-, +, or **
codeBlockStyleindented or fencedindented
fence``` or ~~~```
emDelimiter_ or *_
strongDelimiter** or __**
linkStyleinlined or referencedinlined
linkReferenceStylefull, collapsed, or shortcutfull

License

turndown is copyright © 2017+ Dom Christie and released under the MIT license.

Keywords

FAQs

Last updated on 02 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc