split_block
split_block(
text: Text ,
)-> ‘Section’
Turn a block of rendered text into a section.
The first line names the block and the rest is its body, which is how every block a dascore repr is built from already reads. Slicing rather than splitting is deliberate: Text.split drops a trailing blank line, and the attributes block ends on one.
The body keeps the newline which separated it, so a span straddling the break still covers what it covered. Rendering the section gives back the same characters drawn the same way, though not the same spans: slicing restates a base style as a span, and a span across the break comes back as two touching ones.