tidy-markdown
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -30,5 +30,6 @@ // Generated by CoffeeScript 1.10.0 | ||
if (title != null) { | ||
url += " \"" + (title.replace(/\\|"/g, function(m) { | ||
title = title.replace(/\\|"/g, function(m) { | ||
return "\\" + m; | ||
})) + "\""; | ||
}); | ||
url += " \"" + title + "\""; | ||
} | ||
@@ -44,7 +45,12 @@ return "![" + alt + "](" + url + ")"; | ||
if (title != null) { | ||
url += " \"" + (title.replace(/\\|"/g, function(m) { | ||
title = title.replace(/\\|"/g, function(m) { | ||
return "\\" + m; | ||
})) + "\""; | ||
}); | ||
url += " \"" + title + "\""; | ||
} | ||
return "[" + text + "](" + url + ")"; | ||
if (url === text && url !== '') { | ||
return "<" + url + ">"; | ||
} else { | ||
return "[" + text + "](" + url + ")"; | ||
} | ||
}); | ||
@@ -51,0 +57,0 @@ token.text = htmlEntities.decode(token.text); |
{ | ||
"name": "tidy-markdown", | ||
"description": "fix ugly markdown.", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"author": "Sean Lang", | ||
@@ -6,0 +6,0 @@ "bin": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
54487
437
0