html2mrkdwn
TypeScript icon, indicating that this package has built-in type declarations

0.2.0-0 • Public • Published

HTML2MRKDWN

Quick parsing of HTML to slack's mrkdwn for use with their API

Installing

To install with NPM run

npm install html2mrkdwn

Usage

The parser is contained within the static convert() method. Two examples are showen below with both usage in es5 and CommonJS.

Examples

es5

import {html2mrkdwn} from 'html2mrkdwn';

console.log(html2mrkdwn.convert('<p>Hello World<p>'));

CommonJS

const convert = require('html2mrkdwn');

console.log(convert.html2mrkdwn.convert('<p>Hello World</p>'));

Quick Links

Contributing

Readme

Keywords

Package Sidebar

Install

npm i html2mrkdwn

Weekly Downloads

52

Version

0.2.0-0

License

MIT

Unpacked Size

8.33 kB

Total Files

7

Last publish

Collaborators

  • arcticwarmth