parse method

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

Implementation

@override
Node parse(BlockParser parser) {
  final pos = parser.pos + parser.offset;
  final childLines = parseChildLines(parser);

  // Recursively parse the contents of the blockquote.
  final children = parser.document.getBlockParser(childLines,
      offset: pos).parseLines(
    // The setext heading underline cannot be a lazy continuation line in a
    // block quote.
    // https://spec.commonmark.org/0.30/#example-93
    disabledSetextHeading: _lazyContinuation,
    parentSyntax: this,
  );

  return Element('blockquote', children);
}