parse method

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

Implementation

@override
Node parse(BlockParser parser) {
  var childLines = <String>[];

  // Eat until we hit a blank line.
  while (!parser.isDone && !parser.matches(_emptyPattern)) {
    childLines.add(parser.current);
    parser.advance();
  }

  return Text(childLines.join('\n').trimRight());
}