(blockElement: HTMLElement)
| 138 | }; |
| 139 | |
| 140 | export const isMathBlockEmpty = (blockElement: HTMLElement) => { |
| 141 | return getMathBlockText(blockElement).trim() === ""; |
| 142 | }; |
| 143 | |
| 144 | /** 空数学块默认 CodeMirror;非空且未编辑时保持预览态 */ |
| 145 | export const syncMathBlockDisplayMode = (vditor: IVditor, blockElement: HTMLElement, focus = false) => { |
no test coverage detected