class markdown::DefinitionMap

sys::Obj
  markdown::DefinitionMap

@Js

Source

A map that can be used to store and lookup reference definitions by a label. The labels are case-insensitive and normalized, the same way as for LinkReferenceDefinition nodes.

addAll

Void addAll(DefinitionMap that)

Source

get

@Operator
Block? get(Str label, Block? def := null)

Source

make

new make(Type of)

Source

of

const Type of

Source

The type of definition stored in this map

putIfAbsent

Block? putIfAbsent(Str label, Block def)

Source

Store a new definition unless one is already in the map. If there is no definition for the label yet, return null. Otherwise return the existing definition

The label is normalized by the definition map before storing.