LocationAwareLabelStorerHook

Hook that, if executed after LocationAwarenessHook has populated the location data for each location-trackable node, assigns identifiers to elements based on their location in the document and the current NumberingFormat which dictates the 'accuracy' or threshold.

For example, given a document with the following structure:

# Heading 1

![Figure](image.png)

## Heading 2

![Another figure](another-image.png)

# Heading 3

![Yet another figure](yet-another-image.png)
  • If the numbering format for figures is 1.1, the first figure will be labeled as 1.1, the second as 1.2, and the third as 2.1.

  • If the numbering format for figures is 1, the first figure will be labeled as 1, the second as 2, and the third as 3.

See also

Constructors

Link copied to clipboard
constructor(context: MutableContext)

Functions

Link copied to clipboard
open override fun attach(iterator: ObservableAstIterator)

Attaches this hook to the given iterator.