parseChildLines method

List<String?> parseChildLines(
  1. BlockParser parser
)

Implementation

List<String?> parseChildLines(BlockParser parser) {
  // Grab all of the lines that form the block element.
  final childLines = <String?>[];

  while (!parser.isDone) {
    final match = pattern.firstMatch(parser.current);
    if (match == null) {
      break;
    }
    childLines.add(match[1]);
    parser.advance();
  }

  return childLines;
}