Comparing version 1.5.8 to 1.5.9
@@ -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 @@ // |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27663