parse method

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

Implementation

@override
Node parse(BlockParser parser) {
  final element = super.parse(parser) as Element;

  if (element.children?.isNotEmpty ?? false) {
    element.generatedId = BlockSyntax.generateAnchorHash(element);
  }

  return element;
}