@udecode/plate-juice
Advanced tools
Comparing version
# @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
6921
19.12%59
11.32%+ Added
- Removed
Updated