AnchorMaps are used to represent links between objects within a document.
Stores an arbitrary object called
.object and it's location within a document.
object– the stored object.
order– ordering of
objectwithin the entire document.
file– the destination file, in
build, where the object will be written to.
id– the generated "slug" identifying the object.
nth– integer that unique-ifies anchors with the same
Tree structure representating anchors in a document and their relationships with eachother.
id -> file -> anchors
id maps to a
file which in turn maps to a vector of
add!(m, anchor, id, file)
Anchor object matching
n may also be provided. An
Anchor is returned, or
nothing in case of no match.
exists(m, id, file, n)
Does the given
id exist within the
file and integer
n may also be provided to narrow the search for existance.
Create an HTML fragment from an anchor.
id unique within the given
AnchorMap? May also specify the