Provides convenience methods for handling named and numeric entities.
Contains the mapping of code point (or name) to the actual Entity object.
Array of arrays. Each sub-array specifies a code point and the associated name.
This table is not used directly – Entity objects are automatically created from it and put into a Hash map when this file is loaded.
Return the entity for the given code point or name
point_or_name
.
# File lib/kramdown/utils/entities.rb, line 324 def entity(point_or_name) ENTITY_MAP[point_or_name] end
Return the entity for the given code point or name
point_or_name
.
# File lib/kramdown/utils/entities.rb, line 324 def entity(point_or_name) ENTITY_MAP[point_or_name] end