@ones-editor/editor 2.9.5 → 2.9.6
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.
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +13 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75767,7 +75767,14 @@ ${codeText}
|
|
|
75767
75767
|
...options,
|
|
75768
75768
|
listLevel: options.listLevel + 1
|
|
75769
75769
|
};
|
|
75770
|
-
|
|
75770
|
+
let heading;
|
|
75771
|
+
let tokens = item.tokens;
|
|
75772
|
+
if (item.tokens.length === 1 && item.tokens[0].type === "heading") {
|
|
75773
|
+
const token2 = item.tokens[0];
|
|
75774
|
+
heading = token2.depth;
|
|
75775
|
+
tokens = token2.tokens;
|
|
75776
|
+
}
|
|
75777
|
+
const { text: text2, children } = options.tokensToTextWithChildren(tokens, newOptions);
|
|
75771
75778
|
let checkbox2;
|
|
75772
75779
|
if (typeof item.checked === "boolean") {
|
|
75773
75780
|
checkbox2 = item.checked ? "checked" : "unchecked";
|
|
@@ -75782,6 +75789,9 @@ ${codeText}
|
|
|
75782
75789
|
text: text2,
|
|
75783
75790
|
level: options.listLevel
|
|
75784
75791
|
};
|
|
75792
|
+
if (heading) {
|
|
75793
|
+
block.heading = heading;
|
|
75794
|
+
}
|
|
75785
75795
|
blocks.push(block);
|
|
75786
75796
|
blocks.push(...children);
|
|
75787
75797
|
});
|
|
@@ -94762,7 +94772,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94762
94772
|
}
|
|
94763
94773
|
}
|
|
94764
94774
|
});
|
|
94765
|
-
editor.version = "2.9.
|
|
94775
|
+
editor.version = "2.9.6";
|
|
94766
94776
|
return editor;
|
|
94767
94777
|
}
|
|
94768
94778
|
function isDoc(doc2) {
|
|
@@ -94876,7 +94886,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
94876
94886
|
}
|
|
94877
94887
|
});
|
|
94878
94888
|
OnesEditorToolbar.register(editor);
|
|
94879
|
-
editor.version = "2.9.
|
|
94889
|
+
editor.version = "2.9.6";
|
|
94880
94890
|
return editor;
|
|
94881
94891
|
}
|
|
94882
94892
|
async function showDocVersions(editor, options, serverUrl) {
|