Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix stripHTML to properly format Markdown links

stripHTML returned (label)[url], but Markdown links are of the form
[label](url).
  • Loading branch information...
commit 17b293e4a3402ab64ae5c3e9584e842c5f122d53 1 parent 7ae622b
@elisee elisee authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/helpers.js
View
3  lib/helpers.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.