Permalink
Browse files

Merge pull request #113 from elisee/patch-1

Fix stripHTML to properly format Markdown links
  • Loading branch information...
2 parents 7ae622b + 17b293e commit 3e7cedc635ca67d43653b5a4cbdc17171356d845 @andris9 andris9 committed Oct 29, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/helpers.js
View
@@ -1,4 +1,3 @@
-
// expose to the world
module.exports.stripHTML = stripHTML;
@@ -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

0 comments on commit 3e7cedc

Please sign in to comment.