MarkdownDefinitions class
The link and footnote definitions of one document.
Passed to Plusparse.parse when a document is parsed in pieces; a whole document parsed at once collects its own.
Properties
Methods
-
changedKeys(
MarkdownDefinitions other) → Set< String> -
The lookup keys (as recording records them) whose answer differs
between this and
other. -
footnote(
String label) → int? -
The number footnote
labeldisplays as — its position among the document's footnote definitions, from 1 — or null when it has none. -
link(
String label) → MdLinkDefinition? -
The definition for link
label, matched case-insensitively and with runs of whitespace collapsed, as CommonMark matches labels. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recording(
Set< String> lookups) → MarkdownDefinitions -
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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
collect(
String source, {MarkdownBlockRegistry? blockRegistry}) → MarkdownDefinitions -
Every definition in
sourcethat starts a block at the top level. -
collectLines(
List< String> lines, {MarkdownBlockRegistry? blockRegistry}) → MarkdownDefinitions - collect over a document already split into lines.
Constants
- empty → const MarkdownDefinitions
- No definitions at all.