rich-text-to-html
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "rich-text-to-html", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "return html string from contentful rich text fieild", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,20 +87,8 @@ # rich-text-to-html | ||
} | ||
}, | ||
{ | ||
nodeType: "paragraph", | ||
content: [ | ||
{ | ||
nodeType: "text", | ||
value: "custom text", | ||
marks: [], | ||
data: {} | ||
} | ||
], | ||
data: {} | ||
} | ||
] | ||
}; | ||
richTextToHtmlString(document); // -> <h2>Casino ads</h2><p>custom text</p><img alt="Banner" src="https://images.ctfassets.net/.../image.webp"><p>custom text</p> | ||
richTextToHtmlString(document); // -> <h2>Casino ads</h2><p>custom text</p><img alt="Banner" src="https://images.ctfassets.net/.../image.webp"> | ||
``` | ||
<br> | ||
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
6233
94