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

hashCode → int
The hash code for this object.
no setteroverride
isEmpty → bool
Whether there are no definitions at all.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

changedKeys(MarkdownDefinitions other) → Set<String>
The lookup keys (as recording records them) whose answer differs between this and other.
definesFootnote(String label) → bool
Whether the document defines footnote label, referenced or not — a definition line is hidden either way.
footnote(String label) → int?
The number footnote label displays as, or null when it has none.
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, MarkdownHtml? html}) → MarkdownDefinitions
Every definition in source, found where the block parser accepts one — see collectLines.
collectLines(List<String> lines, {MarkdownBlockRegistry? blockRegistry, MarkdownHtml? html}) → MarkdownDefinitions
collect over a document already split into lines.

Constants

empty → const MarkdownDefinitions
No definitions at all.