@seafile/seafile-editor 1.0.104 → 1.0.106

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.
@@ -80,19 +80,34 @@ const applyMarkForInlineItem = function (result, item) {
80
80
  // https://symbl.cc/en/200B/
81
81
  const formatValue = value && value !== '​' ? value : '';
82
82
  textNode['text'] = formatValue;
83
- result.push(textNode);
83
+ result.push({
84
+ ...textNode
85
+ });
86
+
87
+ // reset testNode
88
+ textNode = {};
84
89
  return;
85
90
  }
86
91
  if (type === 'inlineCode') {
87
92
  textNode['code'] = true;
88
93
  textNode['text'] = value || '';
89
- result.push(textNode);
94
+ result.push({
95
+ ...textNode
96
+ });
97
+
98
+ // reset testNode
99
+ textNode = {};
90
100
  return;
91
101
  }
92
102
  const attr_key = INLINE_KEY_MAP[type];
93
103
  if (!Array.isArray(children) || children.length === 0 || !attr_key) {
94
104
  textNode['text'] = value || '';
95
- result.push(textNode);
105
+ result.push({
106
+ ...textNode
107
+ });
108
+
109
+ // reset testNode
110
+ textNode = {};
96
111
  return;
97
112
  }
98
113
  textNode[attr_key] = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.104",
3
+ "version": "1.0.106",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {