@desynova-digital/components 9.0.7 → 9.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,9 +209,16 @@ var DraftInputText = function DraftInputText(_ref) {
209
209
  return match ? match[1] : htmlString;
210
210
  };
211
211
 
212
+ var changeEmToI = function changeEmToI(str) {
213
+ return str.replace(/<[/]?em>/g, function (match) {
214
+ return match === '<em>' ? '<i>' : '</i>';
215
+ });
216
+ };
217
+
212
218
  (0, _react.useEffect)(function () {
213
219
  var html = (0, _draftConvert.convertToHTML)(editorState.getCurrentContent());
214
220
  html = removeOuterPTag(html);
221
+ html = changeEmToI(html);
215
222
  var obj = {
216
223
  size: contentLength,
217
224
  html: html
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "9.0.7",
3
+ "version": "9.0.8",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "9.0.7",
10
+ "@desynova-digital/tokens": "9.0.8",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },