(blockElement: HTMLElement | null)
| 101 | }; |
| 102 | |
| 103 | export const isMathBlockElement = (blockElement: HTMLElement | null) => { |
| 104 | return blockElement?.getAttribute("data-type") === "math-block"; |
| 105 | }; |
| 106 | |
| 107 | /** 数学块预览态:隐藏源码 pre,仅展示渲染结果(源码仅供 Lute / CodeMirror 同步) */ |
| 108 | export const ensureMathBlockPreviewMode = (blockElement: HTMLElement) => { |
no test coverage detected