@october/slate-md-serializer
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -31,3 +31,4 @@ "use strict"; | ||
function formatLinkBar(img, url, title, desc, domain) { | ||
return "%%%\n" + (img ? url + "\n" + img : url) + "\n" + title + "\n" + desc.replace(/\[(.*?)\]/g, "") + "\n" + domain + "\n%%%\n"; | ||
var description = desc.replace(/\[(.*?)\]/g, ""); | ||
return "%%%\n" + (img ? url + "\n" + img : url) + "\n" + (title ? title + "\n" : "") + (description ? description + "\n" : "") + domain + "\n%%%\n"; | ||
} | ||
@@ -34,0 +35,0 @@ |
{ | ||
"name": "@october/slate-md-serializer", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/renderer.js", |
@@ -12,7 +12,6 @@ import parser from "./parser"; | ||
function formatLinkBar(img, url, title, desc, domain) { | ||
const description = desc.replace(/\[(.*?)\]/g, "") | ||
return `%%% | ||
${img ? `${url}\n${img}` : url} | ||
${title} | ||
${desc.replace(/\[(.*?)\]/g, "")} | ||
${domain} | ||
${title ? `${title}\n` : ""}${description ? `${description}\n` : ""}${domain} | ||
%%% | ||
@@ -19,0 +18,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
251576