0.2.0-0 • Published 4 months ago

html2mrkdwn v0.2.0-0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

0.2.0-0

4 months ago

0.1.0

5 months ago