@udecode/plate-juice
Advanced tools
Comparing version 8.1.0 to 8.3.0
# @udecode/plate-juice | ||
## 8.3.0 | ||
## 8.1.0 |
@@ -13,3 +13,6 @@ import { createPluginFactory, KEY_DESERIALIZE_HTML } from '@udecode/plate-core'; | ||
transformData: data => { | ||
return juice(data); | ||
// juice ignores the first class when there is <!-- just after <style>, so we remove it | ||
let newData = data.replace(/<style>(\s*?)<!--/g, '<style>'); | ||
newData = juice(newData); | ||
return newData; | ||
} | ||
@@ -16,0 +19,0 @@ } |
@@ -21,3 +21,6 @@ 'use strict'; | ||
transformData: data => { | ||
return juice__default['default'](data); | ||
// juice ignores the first class when there is <!-- just after <style>, so we remove it | ||
let newData = data.replace(/<style>(\s*?)<!--/g, '<style>'); | ||
newData = juice__default['default'](newData); | ||
return newData; | ||
} | ||
@@ -24,0 +27,0 @@ } |
{ | ||
"name": "@udecode/plate-juice", | ||
"version": "8.1.0", | ||
"version": "8.3.0", | ||
"description": "HTML juice plugin for Plate", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@udecode/plate-core": "8.1.0", | ||
"@udecode/plate-core": "8.3.0", | ||
"juice": "8.0.0" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6921
59
+ Added@udecode/plate-core@8.3.0(transitive)
- Removed@udecode/plate-core@8.1.0(transitive)
Updated@udecode/plate-core@8.3.0