in src/inlines/parse.php [15:35]
function parse(
Context $context,
string $markdown,
): vec<Inline> {
list($parsed, $offset) = _Private\parse_with_denylist(
$context,
$markdown,
0,
keyset[],
);
$length = Str\length($markdown);
invariant(
$offset === $length,
'TextualContent should have consumed everything. '.
'Offset: %d; Length: %d; Final class: %s',
$offset,
$length,
\get_class(C\lastx($parsed)),
);
return $parsed;
}