// important behavior for the semantic hierarchy
const hideTopBlock = // to avoid thrashing existing content, we hide the top block if it is effectively the same as the doc title
!!publication.document?.title &&
allBlocks[0]?.block?.type == 'heading' &&
(!allBlocks[0]?.children || allBlocks[0]?.children?.length == 0) &&
allBlocks[0]?.block?.text &&
allBlocks[0]?.block?.text === publication.document?.title