forked fromintegrations/html-to-mrkdwn
- Notifications
You must be signed in to change notification settings - Fork0
qatalog/html-to-mrkdwn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Convert HTML to Slack'smrkdwn format.
constmrkdwn=require('html-to-mrkdwn')consthtml=`<p><strong>Hello</strong> <a href="https://example.com">cruel</a> <em>world</em>!</p><p><img src="https://media.giphy.com/media/5xtDarEbygs3Pu7p3jO/giphy.gif"></p>`mrkdwn(html)// {// text: "*Hello* <https://example.com|cruel> _world_!\n\n<https://media.giphy.com/media/5xtDarEbygs3Pu7p3jO/giphy.gif>",// image: "https://media.giphy.com/media/5xtDarEbygs3Pu7p3jO/giphy.gif",// }
About
Convert HTML to Slack's mrkdwn format
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Languages
- JavaScript100.0%