@kaitify/core 0.0.1-beta.14 → 0.0.1-beta.15
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/lib/kaitify-core.es.js
CHANGED
|
@@ -7948,6 +7948,13 @@ const ListExtension = () => Extension.create({
|
|
|
7948
7948
|
({ node }) => {
|
|
7949
7949
|
if (node.isMatch({ tag: "ol" }) || node.isMatch({ tag: "ul" })) {
|
|
7950
7950
|
node.type = "block";
|
|
7951
|
+
if (!node.hasStyles()) {
|
|
7952
|
+
node.styles = {
|
|
7953
|
+
listStyleType: node.isMatch({ tag: "ol" }) ? "decimal" : "disc"
|
|
7954
|
+
};
|
|
7955
|
+
} else if (!node.styles.listStyleType) {
|
|
7956
|
+
node.styles.listStyleType = node.isMatch({ tag: "ol" }) ? "decimal" : "disc";
|
|
7957
|
+
}
|
|
7951
7958
|
}
|
|
7952
7959
|
},
|
|
7953
7960
|
//列表项处理
|