New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tidy-markdown

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tidy-markdown - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

16

lib/tidy-inline-markdown.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc