Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix stripHTML to properly format Markdown links #113

Merged
merged 1 commit into from Oct 29, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −2
Split
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