Skip to content

Commit

Permalink
Merge pull request nodemailer#113 from elisee/patch-1
Browse files Browse the repository at this point in the history
Fix stripHTML to properly format Markdown links
  • Loading branch information
andris9 committed Oct 29, 2012
2 parents 7ae622b + 17b293e commit 3e7cedc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/helpers.js
@@ -1,4 +1,3 @@

// expose to the world
module.exports.stripHTML = stripHTML;

Expand Down Expand Up @@ -102,7 +101,7 @@ function stripHTML(str){
var paramMatch = params.match(/href\s*=\s*['"]([^'"]+)['"]/),
url = paramMatch && paramMatch[1] || "#";

return "(" + content.trim() + ")" + "[" + url +"]";
return "[" + content.trim() + "]" + "(" + url +")";
});

// UL, replace with newlines
Expand Down

0 comments on commit 3e7cedc

Please sign in to comment.