@seafile/seafile-editor 2.0.46-beta2 → 2.0.46
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,18 +101,18 @@ const applyMarkForInlineItem = function (result, item) {
|
|
|
101
101
|
}
|
|
102
102
|
if (type === 'linkReference') {
|
|
103
103
|
var _item$children$;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
id: textNode.id,
|
|
104
|
+
textNode['type'] = _elementTypes.LINK_REFERENCE;
|
|
105
|
+
textNode['identifier'] = item.identifier;
|
|
106
|
+
textNode['referenceType'] = item.referenceType;
|
|
107
|
+
textNode['label'] = (_item$children$ = item.children[0]) === null || _item$children$ === void 0 ? void 0 : _item$children$.value;
|
|
108
|
+
textNode['children'] = [{
|
|
109
|
+
id: _slugid.default.nice(),
|
|
111
110
|
text: ''
|
|
112
111
|
}];
|
|
113
112
|
result.push({
|
|
114
|
-
...
|
|
113
|
+
...textNode
|
|
115
114
|
});
|
|
115
|
+
|
|
116
116
|
// reset testNode
|
|
117
117
|
textNode = {};
|
|
118
118
|
return;
|
|
@@ -130,7 +130,9 @@ const applyMarkForInlineItem = function (result, item) {
|
|
|
130
130
|
}
|
|
131
131
|
textNode[attr_key] = true;
|
|
132
132
|
children.forEach(item => {
|
|
133
|
-
applyMarkForInlineItem(result, item,
|
|
133
|
+
applyMarkForInlineItem(result, item, {
|
|
134
|
+
...textNode
|
|
135
|
+
});
|
|
134
136
|
});
|
|
135
137
|
};
|
|
136
138
|
const transformNodeWithInlineChildren = node => {
|