Skip to content

digitalonboarding/slackify-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slackify-Markdown

Build Status codecov Known Vulnerabilities

Slackify-Markdown is a Markdown to Slack-specific-markdown converter, based on Unified and Remark.

Install

npm install slackify-markdown

Usage

const slackifyMarkdown = require('slackify-markdown');
const markdown = `
# List of items

* item 1
* item 2
* item 3

[here is an example](https://example.com)
`;

slackifyMarkdown(markdown);
/*
 *List of items*

  item 1
  item 2
  item 3

 <https://example.com|here is an example>
/*

NodeJS version < 10

Use slackify-markdown v2 if you use nodejs version 9 and lower.

npm install slackify-markdown@2

Copyright and License

Copyright Yevhenii Baraniuk, 2019

MIT Licence

About

Convert markdown into Slack-specific markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%