Ensure Url parsing is removed all the way down (not just edge)

This commit is contained in:
Aidan Woods 2019-01-26 20:12:05 +00:00
parent ebde35cf0d
commit b728f254b7
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -127,14 +127,14 @@ final class Link implements Inline
$attributes['href'] = Element::filterUnsafeUrl($attributes['href']); $attributes['href'] = Element::filterUnsafeUrl($attributes['href']);
} }
$NewState = $State->setting( $State = $State->setting(
$State->get(InlineTypes::class)->removing([Url::class]) $State->get(InlineTypes::class)->removing([Url::class])
); );
return new Element( return new Element(
'a', 'a',
$attributes, $attributes,
$State->applyTo((new Parsedown($NewState))->line($this->label)) $State->applyTo((new Parsedown($State))->line($this->label))
); );
} }
); );