parse method

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

Implementation

@override
Node parse(BlockParser parser) {
  var match = pattern.firstMatch(parser.current)!;
  parser.advance();
  var level = match[1]!.length;
  var contents = UnparsedContent(match[2]!.trim());
  return Element('h$level', [contents]);
}