parse method

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

Implementation

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