Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json2md

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json2md - npm Package Compare versions

Comparing version 1.5.8 to 1.5.9

7

lib/converters.js

@@ -51,3 +51,3 @@ "use strict";

converters.blockquote = function (input, json2md) {
return json2md(input, "> ") + "\n";
return json2md(input, "> ");
};

@@ -63,3 +63,3 @@

input.title = input.title || "";
return "![" + input.title + "](" + input.source + ")\n";
return "![" + input.title + "](" + input.source + ")";
};

@@ -87,3 +87,2 @@

var marker = "";
var type = Object.keys(input[i])[0];

@@ -113,3 +112,3 @@ if (type !== "ul" && type !== "ol") {

converters.p = function (input, json2md) {
return parseTextFormat(json2md(input, "\n")) + "\n";
return parseTextFormat(json2md(input, "\n"));
};

@@ -116,0 +115,0 @@

@@ -33,4 +33,4 @@ "use strict";

* json2md.converters.sayHello = function (input, json2md) {
* return "Hello " + input + "!";
* };
* return "Hello " + input + "!"
* }
* ```

@@ -41,3 +41,3 @@ *

* ```js
* json2md({ sayHello: "World" });
* json2md({ sayHello: "World" })
* // => "Hello World!"

@@ -71,3 +71,3 @@ * ```

if (typeof func === "function") {
return indento(func(_type ? data : data[type], json2md), 1, prefix);
return indento(func(_type ? data : data[type], json2md), 1, prefix) + "\n";
}

@@ -74,0 +74,0 @@ throw new Error("There is no such converter: " + type);

{
"name": "json2md",
"version": "1.5.8",
"version": "1.5.9",
"description": "A JSON to Markdown converter.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -38,3 +38,3 @@

"Easy to use"
, "You can programatically generate Markdown content"
, "You can programmatically generate Markdown content"
, "..."

@@ -76,3 +76,3 @@ ]

// - Easy to use
// - You can programatically generate Markdown content
// - You can programmatically generate Markdown content
// - ...

@@ -79,0 +79,0 @@ //

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