in src/inlines/Emphasis.php [435:452]
private static function consumeHigherPrecedence(
Context $context,
string $markdown,
int $offset,
): ?(Inline, int) {
foreach ($context->getInlineTypes() as $type) {
if ($type === self::class) {
return null;
}
$result = $type::consume($context, $markdown, $offset);
if ($result !== null) {
return $result;
}
}
invariant_violation('should be unreachable');
}