mermaid.text

mermaid

text(row, style_fn) -> line

Join a painted row's runs into one line of text

Writes each run at its column, with spaces across the blank cells before it. style_fn(style, text) returns a run's text as the terminal should get it; with no function a run goes out plain. Nothing follows the last run, so a line is as wide as its last run's end.