mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Ensure Url parsing is removed all the way down (not just edge)
This commit is contained in:
parent
ebde35cf0d
commit
b728f254b7
@ -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))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user