MCPcopy Create free account
hub / github.com/HubSpot/draft-convert / getBlockDividerChunk

Function getBlockDividerChunk

src/convertFromHTML.js:148–161  ·  view source on GitHub ↗
(block, depth, data = Map())

Source from the content-addressed store, hash-verified

146}
147
148function getBlockDividerChunk(block, depth, data = Map()) {
149 return {
150 text: '\r',
151 inlines: [OrderedSet()],
152 entities: new Array(1),
153 blocks: [
154 {
155 type: block,
156 data,
157 depth: Math.max(0, Math.min(MAX_DEPTH, depth)),
158 },
159 ],
160 };
161}
162
163function getBlockTypeForTag(tag, lastList) {
164 switch (tag) {

Callers 1

genFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…