edu360-web-ui 1.0.118 → 1.0.119

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/dist/main.css CHANGED
@@ -7,4 +7,4 @@
7
7
 
8
8
  Outdated base version: https://github.com/primer/github-syntax-light
9
9
  Current colors taken from GitHub's CSS
10
- */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-577cd9c1]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-577cd9c1]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-577cd9c1]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-577cd9c1],.toolbar .flex-center .upload-demo[data-v-577cd9c1]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-577cd9c1]{color:#333}.toolbar .el-dropdown[data-v-577cd9c1]{height:22px}.is-active[data-v-577cd9c1]{color:#256cfb}.icon-gray[data-v-577cd9c1]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-577cd9c1]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-577cd9c1]{display:flex;align-items:center;gap:4px}.table-content[data-v-577cd9c1]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-577cd9c1]{margin:0!important}.el-dropdown-link.disabled[data-v-577cd9c1]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-0b13036c]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-0b13036c]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-0b13036c] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-0b13036c]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-0b13036c]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-0b13036c]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-0b13036c]{color:#999;font-size:12px}.editor-content-container[data-v-0b13036c]{flex:1;height:0;position:relative}.editor-content[data-v-0b13036c]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-0b13036c]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-0b13036c]{display:flex;align-items:center}.bubble-menu[data-v-0b13036c]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-0b13036c]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-0b13036c]{display:flex;flex-direction:column}.table-toolbar[data-v-0b13036c]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-0b13036c]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle,.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
10
+ */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.link-bubble[data-v-547694a0]{position:absolute;width:300px}.unlink-btn[data-v-547694a0]{color:#f56c6c;border-color:#f56c6c;display:flex;align-items:center;transition:all .2s}.unlink-btn[data-v-547694a0]:hover{background-color:#f56c6c;color:#fff;border-color:#f56c6c}.unlink-btn svg[data-v-547694a0]{flex-shrink:0}.flex[data-v-547694a0]{display:flex}.justify-between[data-v-547694a0]{justify-content:space-between}.items-center[data-v-547694a0]{align-items:center}.ml-1[data-v-547694a0]{margin-left:4px}.mt-2[data-v-547694a0]{margin-top:8px}.text-right[data-v-547694a0]{text-align:right}[data-v-c0c6a2ad]:root{--clnpmel-color-primary: #fc5b08 !important}.jupyter-icon[data-v-c0c6a2ad]{display:inline-block;vertical-align:middle;fill:#333}.sudoku-div[data-v-d94a94d9]{background-color:#fff;display:inline-block}.sudoku-row[data-v-d94a94d9]{height:20px;display:flex;gap:2px}.sudoku-col[data-v-d94a94d9]{display:inline-block;width:16px;height:16px;margin-right:2px;background-color:#171a1d1a;cursor:pointer}.sudoku-col.active[data-v-d94a94d9]{background-color:#256cfb!important}[data-v-6eb1e6f8]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-6eb1e6f8]{position:relative;height:25px;z-index:999}.floating-menu .floating-menu-btn[data-v-6eb1e6f8]{border-radius:4px;border:1px solid #eee;background-color:#fff;padding:4px}.floating-menu .floating-menu-btn>p[data-v-6eb1e6f8]{line-height:14px;height:14px;margin:0}.floating-menu-cont[data-v-6eb1e6f8]{display:flex;flex-direction:column;gap:4px;position:absolute;border-radius:4px;border:1px solid #eee;background-color:#fff;padding:0 20px 20px;width:220px;box-sizing:border-box}.floating-menu-cont .floating-menu-tit[data-v-6eb1e6f8]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-6eb1e6f8]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-6eb1e6f8]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-6eb1e6f8]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-6eb1e6f8]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-6eb1e6f8]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-6eb1e6f8]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-6eb1e6f8]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-6eb1e6f8]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r>p[data-v-6eb1e6f8]{margin:0}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-6eb1e6f8]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-6eb1e6f8]{flex-direction:row;justify-content:space-between;align-items:center}.icon-gray[data-v-6eb1e6f8]{color:#999!important;cursor:not-allowed!important}.icon-gray .floating-menu-common-item-r[data-v-6eb1e6f8]{color:#999!important}.block-menu-item[data-v-6eb1e6f8]{padding:.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:#4b5563}.block-menu-item .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#f3f4f6;display:flex;justify-content:center;align-items:center;height:24px;width:24px;border-radius:4px;--tw-bg-opacity: 1;padding:4px;font-size:20px}.block-menu-item[data-v-6eb1e6f8]:hover{background-color:#f3f4f6;font-weight:500;--tw-text-opacity: 1;color:#111827}.block-menu-item:hover .block-menu-item-icon[data-v-6eb1e6f8]{background-color:#fff}.tiptap-vue .tiptap-upload-file>div{width:100%}.tiptap-vue .tiptap-upload-file .block-menu-item{width:100%}[data-v-28ce6f0a]:root{--clnpmel-color-primary: #fc5b08 !important}.my-drawer .dialog-header[data-v-28ce6f0a]{display:flex;justify-content:flex-start;align-items:center;gap:6px}.my-drawer .dialog-header div[data-v-28ce6f0a]{color:var(--text-color);font-size:18px;font-style:normal;font-weight:400;line-height:25px}.my-drawer .close[data-v-28ce6f0a]{position:absolute;top:14px;right:14px;cursor:pointer}.my-drawer .el-drawer__header{margin-bottom:0}[data-v-fb5ad3e3]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-fb5ad3e3]{display:flex;align-items:center;cursor:pointer}.toolbar[data-v-fb5ad3e3]{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;align-items:center}.toolbar .flex-center[data-v-fb5ad3e3],.toolbar .flex-center .upload-demo[data-v-fb5ad3e3]{display:flex;align-items:center;justify-content:center}.toolbar svg[data-v-fb5ad3e3]{color:#333}.toolbar .el-dropdown[data-v-fb5ad3e3]{height:22px}.is-active[data-v-fb5ad3e3]{color:#256cfb}.icon-gray[data-v-fb5ad3e3]{color:#999!important;cursor:not-allowed!important}.tiptap-upload-demo[data-v-fb5ad3e3]{height:18px;display:flex;justify-content:center;align-items:center}.align-item[data-v-fb5ad3e3]{display:flex;align-items:center;gap:4px}.table-content[data-v-fb5ad3e3]{display:flex;justify-content:center;align-items:center;position:relative}.el-dropdown-menu__item>p[data-v-fb5ad3e3]{margin:0!important}.el-dropdown-link.disabled[data-v-fb5ad3e3]{opacity:.5;cursor:not-allowed!important;pointer-events:none}.tiptap-drop-down .el-dropdown-menu__item:not(.is-disabled):hover{background-color:#171a1d0f!important;color:inherit!important}.tiptap-drop-down .el-button--primary.is-link,.tiptap-drop-down .el-button--primary.is-plain,.tiptap-drop-down .el-button--primary.is-text{color:#256cfb!important}.tiptap-drop-down .el-button--primary.is-link svg,.tiptap-drop-down .el-button--primary.is-plain svg,.tiptap-drop-down .el-button--primary.is-text svg{color:#256cfb!important}.bubble-menu[data-v-dc69236f]{background:#fff;border-radius:12px;box-shadow:0 0 0 .5px #565b7647,0 2px 4px #00000014,0 4px 12px -4px #00000014,0 16px 24px -4px #00000029;z-index:999;display:flex}[data-v-01df93dd]:root{--clnpmel-color-primary: #fc5b08 !important}.floating-menu[data-v-01df93dd]{position:absolute;left:-44px;top:-14px;height:40px}.floating-menu-cont[data-v-01df93dd]{display:flex;flex-direction:column;gap:4px}.floating-menu-cont .floating-menu-tit[data-v-01df93dd]{padding:8px 8px 4px 0;margin-left:4px;font-size:14px;line-height:16px;color:#9a9dac}.floating-menu-cont .floating-menu-top[data-v-01df93dd]{padding-bottom:20px;width:100%;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #EEEEEE}.floating-menu-cont .floating-menu-top .floating-menu-top-btns[data-v-01df93dd]{display:flex;flex-wrap:wrap;gap:10px}.floating-menu-cont .floating-menu-top .floating-menu-top-btns>svg[data-v-01df93dd]{cursor:pointer}.floating-menu-cont .floating-menu-common[data-v-01df93dd]{margin-top:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list[data-v-01df93dd]{margin-top:10px;display:flex;flex-direction:column;gap:10px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item[data-v-01df93dd]{display:flex;align-items:center;gap:10px;cursor:pointer}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-l[data-v-01df93dd]{width:42px;height:42px;border:1px solid #EEEEEE;display:flex;align-items:center;justify-content:center;border-radius:4px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r[data-v-01df93dd]{width:100%;display:flex;flex-direction:column;gap:4px;font-size:14px;color:#333}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .floating-menu-common-item-r .desc[data-v-01df93dd]{color:#9a9dac;font-size:12px}.floating-menu-cont .floating-menu-common .floating-menu-common-list .floating-menu-common-item .flex-justify-between[data-v-01df93dd]{flex-direction:row;justify-content:space-between;align-items:center}[data-v-3bf9a61b]:root{--clnpmel-color-primary: #fc5b08 !important}.table-toolbar-wrapper[data-v-3bf9a61b]{position:relative}.table-side-icon[data-v-3bf9a61b]{width:24px;height:24px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0000001f;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333;transition:transform .12s ease,background .12s ease}.table-side-icon[data-v-3bf9a61b]:hover{transform:translateY(-2px);background:#f5f7ff}.table-toolbar-btns[data-v-3bf9a61b]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}.table-toolbar-btns>div[data-v-3bf9a61b]{cursor:pointer;padding:4px 8px;border-radius:4px}.table-toolbar-btns>div[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.table-toolbar-btns .danger[data-v-3bf9a61b]{color:#f56c6c}.merge-control-panel[data-v-3bf9a61b]{position:absolute;background:#fff;border-radius:6px;box-shadow:0 4px 12px #00000026;padding:8px;min-width:160px;z-index:1001}.merge-control-panel .merge-panel-header[data-v-3bf9a61b]{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #ebeef5;font-size:12px;color:#606266}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]{cursor:pointer;color:#909399}.merge-control-panel .merge-panel-header svg[data-v-3bf9a61b]:hover{color:#409eff}.merge-control-panel .merge-panel-content[data-v-3bf9a61b]{display:flex;flex-direction:column;gap:4px}.merge-control-panel .merge-option[data-v-3bf9a61b]{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer;font-size:13px}.merge-control-panel .merge-option[data-v-3bf9a61b]:hover{background-color:#f5f7fa}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]{opacity:.5;cursor:not-allowed}.merge-control-panel .merge-option.disabled[data-v-3bf9a61b]:hover{background-color:transparent}[data-v-39837116]:root{--clnpmel-color-primary: #fc5b08 !important}.ai-content[data-v-39837116]{position:absolute;width:calc(100% - 40px)}[data-v-0b13036c]:root{--clnpmel-color-primary: #fc5b08 !important}.el-dropdown-link[data-v-0b13036c]{display:flex;align-items:center;gap:4px;cursor:pointer}[data-v-0b13036c] .el-dropdown-menu__item.active{color:var(--el-color-primary)}.editor-wrapper[data-v-0b13036c]{border:1px solid #eeeeee;border-radius:6px;position:relative;box-sizing:border-box;display:flex;flex-direction:column}.editor-wrapper .editor-wrapper-toolbar[data-v-0b13036c]{border-bottom:1px solid #eeeeee}.editor-wrapper .editor-bottom[data-v-0b13036c]{display:flex;justify-content:space-between;align-items:center;padding:0 20px;height:40px;border-top:1px solid #eeeeee}.editor-wrapper .editor-bottom .editor-bottom-r[data-v-0b13036c]{color:#999;font-size:12px}.editor-content-container[data-v-0b13036c]{flex:1;height:0;position:relative}.editor-content[data-v-0b13036c]{padding:20px 0;position:relative;box-sizing:border-box;height:100%;overflow-y:auto}.editor-content .editor-loading[data-v-0b13036c]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100000}.upload-demo[data-v-0b13036c]{display:flex;align-items:center}.bubble-menu[data-v-0b13036c]{background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}.floating-menu[data-v-0b13036c]{position:absolute;left:-50px;top:-14px;height:40px}.floating-menu .floating-menu-cont[data-v-0b13036c]{display:flex;flex-direction:column}.table-toolbar[data-v-0b13036c]{position:absolute;z-index:2}.table-toolbar .table-toolbar-btns[data-v-0b13036c]{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:4px;box-shadow:0 2px 12px #0000001a;padding:0 8px;z-index:999}:root{--clnpmel-color-primary: #fc5b08 !important}.tiptap-vue .editor-content table{border-collapse:collapse;margin:10px 0;overflow:hidden;table-layout:fixed;width:100%;border:1px solid #ccc}.tiptap-vue .editor-content table td,.tiptap-vue .editor-content table th{border:1px solid #ccc;box-sizing:border-box;min-width:1em;padding:10px;position:relative;vertical-align:top}.tiptap-vue .editor-content table td>*,.tiptap-vue .editor-content table th>*{margin-bottom:0}.tiptap-vue .editor-content table td ul[data-type=taskList],.tiptap-vue .editor-content table th ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .editor-content table td ul.bullet-list,.tiptap-vue .editor-content table th ul.bullet-list,.tiptap-vue .editor-content table td ol.ordered-list,.tiptap-vue .editor-content table th ol.ordered-list{padding-left:18px!important}.tiptap-vue .editor-content table th{background-color:var(--gray-1);font-weight:700;text-align:left}.tiptap-vue .editor-content table .selectedCell:after{background:#b7dcfb4d;content:"";left:0;right:0;top:0;bottom:0;pointer-events:none;position:absolute;z-index:2}.tiptap-vue .editor-content table .column-resize-handle,.tiptap-vue .editor-content table .row-resize-handle{background-color:#000;bottom:-2px;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.tiptap-vue .editor-content.resize-cursor{cursor:ew-resize;cursor:col-resize}.tiptap-vue .editor-content ul[data-type=taskList]{list-style:none;padding-left:30px;margin:10px 0}.tiptap-vue .editor-content ul[data-type=taskList] li{display:flex;align-items:baseline;-webkit-box-align:baseline}.tiptap-vue .editor-content ul[data-type=taskList] li>label{flex:0 0 auto;margin-right:.5rem;margin-top:.15em;-webkit-user-select:none;user-select:none;display:flex;align-items:center;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div{flex:1 1 auto;word-wrap:break-word;word-break:break-word;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] li>div>p{margin:0!important;line-height:1.5}.tiptap-vue .editor-content ul[data-type=taskList] input[type=checkbox]{cursor:pointer;margin:0;flex-shrink:0}.tiptap-vue .editor-content ul[data-type=taskList] ul[data-type=taskList]{margin:0}.tiptap-vue .editor-content img,.tiptap-vue .editor-content p,.tiptap-vue .editor-content ol,.tiptap-vue .editor-content h1,.tiptap-vue .editor-content h2,.tiptap-vue .editor-content h3,.tiptap-vue .editor-content h4,.tiptap-vue .editor-content h5,.tiptap-vue .editor-content h6{margin:10px 0}.tiptap-vue .editor-content .ProseMirror{height:calc(100% - 10px)}.tiptap-vue .editor-content .ProseMirror p.is-empty:before{padding-left:30px;content:attr(data-placeholder);position:absolute;top:0;left:0;color:#999;pointer-events:none;font-size:inherit;font-style:italic;-webkit-user-select:none;user-select:none}.tiptap-vue .editor-content .ProseMirror>*{padding:0 30px}.tiptap-vue .editor-content .code-block-view,.tiptap-vue .editor-content .ai-assistant-card{padding:0!important}.tiptap-vue .editor-content ul[data-type=taskList] li>p{margin:0!important}.tiptap-vue .editor-content .bullet-list{padding-left:50px}.tiptap-vue .editor-content .bullet-list li>p{margin:0!important}.tiptap-vue .editor-content .ordered-list li>p{margin:0!important}.tiptap-vue .editor-content h1{font-size:2em!important}.tiptap-vue .editor-content h2{font-size:1.5em!important}.tiptap-vue .editor-content h3{font-size:1.17em!important}.tiptap-vue .editor-content h4{font-size:inherit!important}.tiptap-vue .editor-content h5{font-size:.83em!important}.tiptap-vue .editor-content h6{font-size:.67em!important}.is-inline .bullet-list,.is-inline .ordered-list,.is-inline ol,.is-inline ul[data-type=taskList]{padding-left:0!important}.tiptap-vue .el-form-item{margin-bottom:10px!important}.tiptap-vue .noPadding{padding:0}.tiptap-vue .noPadding .ProseMirror>*{padding:0}.tiptap-vue .noPadding .code-block-view-cont{margin:0!important}:focus{outline:none!important}:focus-visible{outline:none!important}.tiptap ol{padding-left:50px!important;list-style-type:decimal;margin:.5em 0}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:upper-alpha}.tiptap ol ol ol ol ol{list-style-type:upper-roman}.tiptap li{position:relative}.tiptap ol[data-level="2"]{background-color:#00000005}.tiptap ol[data-level="3"]{background-color:#0000000a}.source-dialog-content{width:100%;height:100%}.source-dialog-content :deep(.el-textarea){width:100%}.source-dialog-content :deep(.el-textarea__inner){font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;resize:none}.tiptap-vue .editor-content :deep(u),.tiptap-vue .editor-content :deep(.underline){text-decoration:underline!important}.tiptap-vue .editor-content :deep(s),.tiptap-vue .editor-content :deep(del),.tiptap-vue .editor-content :deep(strike){text-decoration:line-through!important}.tiptap-vue .editor-content :deep([style*="text-align"]){text-align:inherit}.tiptap-vue .editor-content :deep(mark){font-size:inherit!important;font-weight:inherit!important;font-style:inherit!important;color:inherit!important;line-height:inherit!important}@font-face{font-family:iconfont;src:url(iconfont.woff2?t=1761630666591) format("woff2"),url(iconfont.woff?t=1761630666591) format("woff"),url(iconfont.ttf?t=1761630666591) format("truetype")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-logos--jupyter:before{content:""}
@@ -153894,8 +153894,7 @@ const _sfc_main$4 = {
153894
153894
  const { doc: doc2 } = state;
153895
153895
  let { tr: tr2 } = state;
153896
153896
  let removedCount = 0;
153897
- const nodesToDelete = [];
153898
- const codeBlocksToUpdate = [];
153897
+ const operations = [];
153899
153898
  let paragraphCount = 0;
153900
153899
  doc2.descendants((node) => {
153901
153900
  if (node.type.name === "paragraph") {
@@ -153904,56 +153903,111 @@ const _sfc_main$4 = {
153904
153903
  });
153905
153904
  doc2.descendants((node, pos) => {
153906
153905
  if (node.type.name === "paragraph") {
153907
- const text2 = node.textContent.trim();
153908
- const isEmpty3 = node.content.size === 0 || text2 === "";
153909
- const isJupyterPrompt = /^(In|Out)\s*\[\s*\d*\s*\]\s*:?\s*$/.test(text2) || /^In\s*\[.*?\]\s*:?$/.test(text2) || /^Out\s*\[.*?\]\s*:?$/.test(text2);
153910
- if (text2.includes("In [") || text2.includes("In[")) {
153911
- console.log("检测到 Jupyter 行:", JSON.stringify(text2), "isJupyterPrompt:", isJupyterPrompt);
153906
+ const rawText = node.textContent || "";
153907
+ const normalizedText = rawText.replace(/\u00a0/g, " ").trim();
153908
+ const isEmpty3 = node.content.size === 0 || normalizedText === "";
153909
+ const isJupyterPrompt = /^(In|Out)\s*\[\s*\d*\s*\]\s*:?\s*$/i.test(normalizedText);
153910
+ if (isJupyterPrompt) {
153911
+ operations.push({
153912
+ type: "replaceJupyter",
153913
+ pos,
153914
+ size: node.nodeSize,
153915
+ attrs: node.attrs
153916
+ });
153917
+ removedCount++;
153918
+ return;
153919
+ }
153920
+ const isOnlyParagraph = paragraphCount === 1 && isEmpty3;
153921
+ if (isEmpty3 && !isOnlyParagraph) {
153922
+ operations.push({ type: "delete", pos, size: node.nodeSize });
153923
+ removedCount++;
153912
153924
  }
153913
- if (isEmpty3 || isJupyterPrompt) {
153914
- const isOnlyParagraph = paragraphCount === 1 && isEmpty3 && !isJupyterPrompt;
153915
- if (!isOnlyParagraph) {
153916
- nodesToDelete.push({ pos, size: node.nodeSize });
153925
+ } else if (node.type.name === "heading") {
153926
+ let hasAnchorLink = false;
153927
+ node.descendants((child) => {
153928
+ if (child.type.name === "link" && child.marks) {
153929
+ const linkMark = child.marks.find((mark) => mark.type.name === "link");
153930
+ if (linkMark && child.textContent === "¶") {
153931
+ hasAnchorLink = true;
153932
+ }
153933
+ }
153934
+ if (child.type.name === "text" && child.text === "¶") {
153935
+ const hasLinkMark = child.marks && child.marks.some(
153936
+ (mark) => mark.type.name === "link" && mark.attrs.class === "anchor-link"
153937
+ );
153938
+ if (hasLinkMark) {
153939
+ hasAnchorLink = true;
153940
+ }
153917
153941
  }
153942
+ });
153943
+ if (hasAnchorLink) {
153944
+ operations.push({
153945
+ type: "removeAnchorLink",
153946
+ pos,
153947
+ node
153948
+ });
153949
+ removedCount++;
153918
153950
  }
153919
153951
  } else if (node.type.name === "codeBlock" || node.type.name === "codeBlockCustom") {
153920
153952
  const text2 = node.textContent;
153921
153953
  if (!text2 || text2.trim() === "") {
153922
- nodesToDelete.push({ pos, size: node.nodeSize });
153954
+ operations.push({ type: "delete", pos, size: node.nodeSize });
153955
+ removedCount++;
153923
153956
  } else if (text2.includes("\n")) {
153924
153957
  const lines = text2.split("\n");
153925
- let hasEmptyLine = false;
153926
153958
  const nonEmptyLines = [];
153927
- for (let i = 0; i < lines.length; i++) {
153928
- const trimmed = lines[i].trim();
153929
- if (trimmed !== "") {
153930
- nonEmptyLines.push(lines[i]);
153959
+ let emptyLineCount = 0;
153960
+ for (const line of lines) {
153961
+ if (line.trim() !== "") {
153962
+ nonEmptyLines.push(line);
153931
153963
  } else {
153932
- hasEmptyLine = true;
153964
+ emptyLineCount++;
153933
153965
  }
153934
153966
  }
153935
- if (hasEmptyLine && nonEmptyLines.length > 0) {
153936
- codeBlocksToUpdate.push({
153967
+ if (emptyLineCount > 0 && nonEmptyLines.length > 0) {
153968
+ operations.push({
153969
+ type: "updateCodeBlock",
153937
153970
  pos,
153938
153971
  nodeSize: node.nodeSize,
153939
153972
  newContent: nonEmptyLines.join("\n"),
153940
- emptyCount: lines.length - nonEmptyLines.length
153973
+ emptyCount: emptyLineCount
153941
153974
  });
153942
153975
  }
153943
153976
  }
153944
153977
  }
153945
153978
  });
153946
- for (let i = codeBlocksToUpdate.length - 1; i >= 0; i--) {
153947
- const item = codeBlocksToUpdate[i];
153948
- const from2 = item.pos + 1;
153949
- const to = item.pos + item.nodeSize - 1;
153950
- tr2 = tr2.replaceWith(from2, to, state.schema.text(item.newContent));
153951
- removedCount += item.emptyCount;
153952
- }
153953
- for (let i = nodesToDelete.length - 1; i >= 0; i--) {
153954
- const { pos, size: size2 } = nodesToDelete[i];
153955
- tr2 = tr2.delete(pos, pos + size2);
153956
- removedCount++;
153979
+ operations.sort((a, b2) => b2.pos - a.pos);
153980
+ for (const operation of operations) {
153981
+ if (operation.type === "delete") {
153982
+ tr2 = tr2.delete(operation.pos, operation.pos + operation.size);
153983
+ } else if (operation.type === "replaceJupyter") {
153984
+ const emptyParagraph = state.schema.nodes.paragraph.create(operation.attrs || null);
153985
+ tr2 = tr2.replaceWith(operation.pos, operation.pos + operation.size, emptyParagraph);
153986
+ } else if (operation.type === "updateCodeBlock") {
153987
+ const from2 = operation.pos + 1;
153988
+ const to = operation.pos + operation.nodeSize - 1;
153989
+ tr2 = tr2.replaceWith(from2, to, state.schema.text(operation.newContent));
153990
+ removedCount += operation.emptyCount;
153991
+ } else if (operation.type === "removeAnchorLink") {
153992
+ const node = operation.node;
153993
+ const newContent = [];
153994
+ node.content.forEach((child) => {
153995
+ if (child.type.name === "text" && child.text === "¶") {
153996
+ const hasLinkMark = child.marks && child.marks.some(
153997
+ (mark) => mark.type.name === "link" && mark.attrs.class === "anchor-link"
153998
+ );
153999
+ if (hasLinkMark) {
154000
+ return;
154001
+ }
154002
+ }
154003
+ newContent.push(child);
154004
+ });
154005
+ const newHeading = state.schema.nodes.heading.create(
154006
+ node.attrs,
154007
+ newContent
154008
+ );
154009
+ tr2 = tr2.replaceWith(operation.pos, operation.pos + node.nodeSize, newHeading);
154010
+ }
153957
154011
  }
153958
154012
  loadingInstance.close();
153959
154013
  if (removedCount > 0) {
@@ -153961,7 +154015,7 @@ const _sfc_main$4 = {
153961
154015
  tr2 = tr2.insert(0, state.schema.nodes.paragraph.create());
153962
154016
  }
153963
154017
  props.editor.view.dispatch(tr2);
153964
- ElMessage.success(`已删除 ${removedCount} 个空行、空代码块和Jupyter提示符`);
154018
+ ElMessage.success(`已删除 ${removedCount} 项(空行和代码块空行)`);
153965
154019
  } else {
153966
154020
  ElMessage.info("文档已经很干净了,没有需要删除的内容");
153967
154021
  }
@@ -154968,7 +155022,7 @@ const _sfc_main$4 = {
154968
155022
  };
154969
155023
  }
154970
155024
  };
154971
- const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-577cd9c1"]]);
155025
+ const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-fb5ad3e3"]]);
154972
155026
  const _hoisted_1$2 = { class: "bubble-menu" };
154973
155027
  const _sfc_main$3 = {
154974
155028
  __name: "BubbleMenu",