New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

slackify-markdown

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slackify-markdown - npm Package Compare versions

Comparing version 1.1.1 to 2.0.0

3

package.json
{
"name": "slackify-markdown",
"version": "1.1.1",
"version": "2.0.0",
"description": "Convert markdown into Slack-specific markdown",

@@ -36,3 +36,2 @@ "license": "MIT",

"dependencies": {
"is-url": "^1.2.4",
"remark-parse": "^5.0.0",

@@ -39,0 +38,0 @@ "remark-stringify": "^5.0.0",

@@ -40,17 +40,6 @@ # Slackify-Markdown

#### Emojis
Emojis map can be passed through options to replace some specific emoji codes
```js
const options = {
emojis: { ':hello:': ':bye:' }
};
slackifyMarkdown(':hello: my friend!', options); // -> ':bye: my friend!'
```
### Copyright and License
Copyright Yevhenii Baraniuk, 2018
Copyright Yevhenii Baraniuk, 2019
[MIT Licence](LICENSE)
const unified = require('unified');
const parse = require('remark-parse');
const replaceEmoji = require('./replaceEmoji');
const slackify = require('./slackify');
const atlassianEmojis = require('./atlassianEmojis');
const defaultOptions = {
pedantic: true,
emojis: atlassianEmojis,
};

@@ -17,3 +14,2 @@

.use(parse, options)
.use(replaceEmoji, options)
.use(slackify)

@@ -20,0 +16,0 @@ .processSync(markdown)

const { Compiler } = require('remark-stringify');
const isURL = require('is-url');
const { wrap } = require('./utils');
const { wrap, isURL } = require('./utils');

@@ -5,0 +4,0 @@ // fixes slack in-word formatting (e.g. hel*l*o)

@@ -0,1 +1,3 @@

const { URL } = require('url');
module.exports = {

@@ -9,2 +11,10 @@ wrap(string, ...wrappers) {

},
isURL(string) {
try {
return Boolean(new URL(string));
} catch (error) {
return false;
}
},
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc