CONTAINERS constant

Map<BLOCKS, List<BLOCKS>> const CONTAINERS

Dictionary of all container block types, and the set block types they accept as children.

Implementation

static const Map<BLOCKS, List<BLOCKS>> CONTAINERS = {
  BLOCKS.OL_LIST: [BLOCKS.LIST_ITEM],
  BLOCKS.UL_LIST: [BLOCKS.LIST_ITEM],
  BLOCKS.LIST_ITEM: TOP_LEVEL_BLOCKS,
  BLOCKS.QUOTE: [BLOCKS.PARAGRAPH],
};