parse method
Implementation
@override
Node parse(BlockParser parser) {
final childLines = <String>[];
// Eat until we hit [endPattern].
while (!parser.isDone) {
childLines.add(parser.current);
if (parser.matches(_endPattern)) {
break;
}
parser.advance();
}
parser.advance();
return Text(childLines.join('\n'));
}