Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to control placement of block descriptions in mermaid block-beta?

Tags:

mermaid

Mermaid Block Beta NestedThe following mermaid code will create the block digram shown above.

block-beta
  columns 3
  block:outer["want label visible"]:3
    l["left"]
    m("middle")
    r["right"]
  end    

How can I control the position for the label of the "outer" block so that it aligns to the top of the "outer" block instead of being centered and therefore hidden under the left, middle, and right blocks?

like image 256
DocOc Avatar asked Oct 16 '25 00:10

DocOc


1 Answers

I had the same problem and came up with this workaround:

block-beta
  block:outer["want label visible\n\n\n"]
    columns 3
    space:3
    l["left"]
    m("middle")
    r["right"]
  end 
like image 187
nn8 Avatar answered Oct 17 '25 23:10

nn8