@zhennann/markdown-it-block
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -18,3 +18,3 @@ // Process block-level custom containers | ||
try { | ||
content = token.content ? JSON.parse(token.content) : {}; | ||
content = token.content ? JSON5.parse(token.content) : {}; | ||
} catch (err) { | ||
@@ -35,3 +35,3 @@ errorMessage = err.message; | ||
// placeholder | ||
var res = JSON.stringify(content, null, 2); | ||
var res = JSON5.stringify(content, null, 2); | ||
return `<div class="alert-info"> | ||
@@ -38,0 +38,0 @@ <p><strong>${blockTitle}: ${md.utils.escapeHtml(blockName)}</strong></p> |
{ | ||
"name": "@zhennann/markdown-it-block", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Plugin to create block-level custom tags for markdown-it markdown parser on Cabloy-CMS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
12200