slackify-markdown
Advanced tools
Comparing version 4.3.0 to 4.3.1
{ | ||
"name": "slackify-markdown", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Convert markdown into Slack-specific markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
const defaultHandlers = require('mdast-util-to-markdown/lib/handle'); | ||
const phrasing = require('mdast-util-to-markdown/lib/util/container-phrasing'); | ||
const { wrap, isURL } = require('./utils'); | ||
const { wrap, isURL, isPotentiallyEncoded } = require('./utils'); | ||
@@ -77,3 +77,3 @@ // fixes slack in-word formatting (e.g. hel*l*o) | ||
|| node.title; | ||
const url = encodeURI(node.url); | ||
const url = isPotentiallyEncoded(node.url) ? node.url : encodeURI(node.url); | ||
exit(); | ||
@@ -80,0 +80,0 @@ |
@@ -17,2 +17,6 @@ module.exports = { | ||
}, | ||
isPotentiallyEncoded(uri) { | ||
return uri !== decodeURIComponent(uri || ''); | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10280
188