parse method

  1. @override
Node parse(
  1. BlockParser parser
)
override

Implementation

@override
Node parse(BlockParser parser) {
  var 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').trimRight());
}