Option to hide the bullet when embedding single blocks

Here are two alternatives:

  • A macro similar to Embed blocks without their children, but with code like this:
     const span = div.closest("span.inline")
     const bullet = span.querySelector(".block-control-wrap")
     if (bullet) bullet.style.display = 'none'
     const container = span.querySelector(".block-children-container")
     if (container) {
         container.style.marginLeft = "auto"
         const children = span.querySelector(".block-children")
         if (children) children.style.borderLeft = 'none'
     }
     div.remove()
    
  • Same thing done with some css like this:
    div.embed-block > div > div > div > div > div > div > div.block-control-wrap {
      display: none;
    }
    div.embed-block > div > div > div > div > div > div.block-children-container {
      margin-left: auto;
    }
    div.embed-block > div > div > div > div > div > div > div.block-children {
      border-left: none;
    }
    
1 Like