startsDefinition function
Whether line looks like the start of a link or footnote definition.
Implementation
bool startsDefinition(String line) {
if (!startsAfterIndent(line, 0x5B /* [ */)) {
return false;
}
final t = line.trimLeft();
if (!t.startsWith('[')) {
return false;
}
final close = _labelEnd(t, 1);
return close != -1 && close + 1 < t.length && t[close + 1] == ':';
}