@mdx-js/mdx
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -46,6 +46,11 @@ function toJSX(node, parentNode = {}) { | ||
let props = '' | ||
if (Array.isArray(node.properties.className)) { | ||
node.properties.className = node.properties.className.join(' '); | ||
} | ||
if (Object.keys(node.properties).length > 0) { | ||
props = JSON.stringify(node.properties) | ||
} | ||
return `<MDXTag name="${node.tagName}" components={components}${ | ||
@@ -52,0 +57,0 @@ parentNode.tagName ? ` parentName="${parentNode.tagName}"` : '' |
{ | ||
"name": "@mdx-js/mdx", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "mdx-js/mdx", |
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
6841
159