MCPcopy Create free account
hub / github.com/editablejs/editable / isPreElement

Function isPreElement

packages/plugins/codeblock/src/deserializer/html.ts:12–14  ·  view source on GitHub ↗
(node: HTMLElement)

Source from the content-addressed store, hash-verified

10import { CodeBlock } from '../interfaces/codeblock'
11
12const isPreElement = (node: HTMLElement) => {
13 return node.nodeName === 'PRE'
14}
15
16const findSyntax = (node: HTMLElement) => {
17 const classList = node.classList

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…