MCPcopy Create free account
hub / github.com/cweijan/vscode-office / isMathBlockElement

Function isMathBlockElement

vditor/src/ts/codeBlock/codeMirrorManager.ts:103–105  ·  view source on GitHub ↗
(blockElement: HTMLElement | null)

Source from the content-addressed store, hash-verified

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

Callers 15

bindEventMethod · 0.90
getChromeCurrentLanguageFunction · 0.90
ensureCodeBlockChromeFunction · 0.90
scrollToBlockFunction · 0.90
syncMathBlockDisplayModeFunction · 0.85
scheduleSpecialBlockFunction · 0.85
exitSpecialBlockEditFunction · 0.85
cmDomEventHandlersFunction · 0.85

Calls 1

getAttributeMethod · 0.80

Tested by

no test coverage detected