@seafile/seafile-editor 2.0.46-beta → 2.0.46-beta2
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.
|
@@ -101,20 +101,20 @@ const applyMarkForInlineItem = function (result, item) {
|
|
|
101
101
|
}
|
|
102
102
|
if (type === 'linkReference') {
|
|
103
103
|
var _item$children$;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
let node = {};
|
|
105
|
+
node['type'] = _elementTypes.LINK_REFERENCE;
|
|
106
|
+
node['identifier'] = item.identifier;
|
|
107
|
+
node['referenceType'] = item.referenceType;
|
|
108
|
+
node['label'] = (_item$children$ = item.children[0]) === null || _item$children$ === void 0 ? void 0 : _item$children$.value;
|
|
109
|
+
node['children'] = [{
|
|
109
110
|
id: textNode.id,
|
|
110
111
|
text: ''
|
|
111
112
|
}];
|
|
112
|
-
delete textNode['bold'];
|
|
113
|
-
delete textNode['code'];
|
|
114
|
-
delete textNode['text'];
|
|
115
113
|
result.push({
|
|
116
|
-
...
|
|
114
|
+
...node
|
|
117
115
|
});
|
|
116
|
+
// reset testNode
|
|
117
|
+
textNode = {};
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
const attr_key = INLINE_KEY_MAP[type];
|