blockRegistry property

MarkdownBlockRegistry? get blockRegistry

Components must be treated as immutable after registration.

Implementation

MarkdownBlockRegistry? get blockRegistry {
  final components = blockComponents;
  if (components == null || components.isEmpty) return null;
  return _registries[components] ??= MarkdownBlockRegistry(
    components.map((component) => component.syntax),
  );
}