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

Function isSpecialPreviewBlock

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

Source from the content-addressed store, hash-verified

97};
98
99export const isSpecialPreviewBlock = (blockElement: HTMLElement | null) => {
100 return isSpecialBlock(blockElement) && !blockElement?.classList.contains(CM_EDITING_CLASS);
101};
102
103export const isMathBlockElement = (blockElement: HTMLElement | null) => {
104 return blockElement?.getAttribute("data-type") === "math-block";

Callers 4

bindEventMethod · 0.90
showCodeFunction · 0.90
bindEventMethod · 0.90
focusCodeBlockFunction · 0.85

Calls 2

isSpecialBlockFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected