New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

unmark

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unmark

A simple HTML to Markdown converter.

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

Unmark

A simple HTML to Markdown converter. Takes HTML and produces Markdown.

Use cases

For some applications you may receive HTML, but you simply want the text in a more readable and flattened format. Unmark will convert HTML into Markdown. If you want the text back into HTML, but with less complexity and cleaned from HTML attributes like class tags, then you could use any Markdown compiler like Marked to produce it.

Installation

Install via console: npm install unmark

Usage

    const unmark = require('unmark');
    const html = '<div><section><p>hello <strong>markdown</strong>.</p></section></div>';

    const markdownOutput = unmark(html);
    console.log(markdownOutput);

Todo

  • Full Github Markdown spec compliance
  • Add tests

Keywords

html

FAQs

Package last updated on 22 Nov 2018

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