Socket
Book a DemoInstallSign in
Socket

html-to-markdown

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-markdown

html to markdown converter with zero dependencies

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Html to markdown converter

Html to markdown converter is a dependency free converter which replaces html with a valid markdown syntax. I have just started working on it, so all tags may not be supported.

Supported Platforms

  • Web browsers.
  • NodeJs

Tags Supported

  • h1,h2,h3,h4,h5,h6
  • p
  • ul,ol
  • blockquote,
  • pre
  • bold,strong
  • italic,em

Converting Html Documents

var converter = require('html-to-markdown');
var markdown = converter.convert('<h2> Happy Journey </h2>');

Extending to add your own formatters.

var converter = require('html-to-markdown');
converter.use(function (html) {
  // making required changes
  // and return new html
})

Keywords

html-to-markdown

FAQs

Package last updated on 05 Nov 2015

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.