recording method

MarkdownDefinitions recording(
  1. Set<String> lookups
)

A view of these definitions that adds every label looked up through it to lookups, so a cache can tell which parses a changed definition reaches.

Lookups are recorded even while there are no definitions at all: a reference parsed before its definition arrives has to be found again when it does.

Implementation

MarkdownDefinitions recording(Set<String> lookups) =>
    MarkdownDefinitions._(_links, _footnotes, lookups);