slackify-markdown
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "slackify-markdown", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert markdown into Slack-specific markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -48,3 +48,3 @@ # Slackify-Markdown | ||
slackifyMarkdown(':hello: my fried!', options); // -> ':bye: my friend!' | ||
slackifyMarkdown(':hello: my friend!', options); // -> ':bye: my friend!' | ||
``` | ||
@@ -51,0 +51,0 @@ |
@@ -56,3 +56,3 @@ const { Compiler } = require('remark-stringify'); | ||
if (!isURL(url)) return url; | ||
return `<${url}|${text}>`; | ||
return text ? `<${url}|${text}>` : `<${url}>`; | ||
}, | ||
@@ -59,0 +59,0 @@ }; |
15942