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

Function buildContentState

test/spec/convertToHTML-test.js:27–32  ·  view source on GitHub ↗
(blocks, entityMap = {})

Source from the content-addressed store, hash-verified

25};
26
27const buildContentState = (blocks, entityMap = {}) => {
28 return convertFromRaw({
29 entityMap,
30 blocks: blocks.map(buildContentBlock),
31 });
32};
33
34const styleMarkup = {
35 BOLD: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…