From b728f254b7917d13293f6013856adb6bde7f32ec Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sat, 26 Jan 2019 20:12:05 +0000 Subject: [PATCH] Ensure Url parsing is removed all the way down (not just edge) --- src/Components/Inlines/Link.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Inlines/Link.php b/src/Components/Inlines/Link.php index 76a4694..81d2a87 100644 --- a/src/Components/Inlines/Link.php +++ b/src/Components/Inlines/Link.php @@ -127,14 +127,14 @@ final class Link implements Inline $attributes['href'] = Element::filterUnsafeUrl($attributes['href']); } - $NewState = $State->setting( + $State = $State->setting( $State->get(InlineTypes::class)->removing([Url::class]) ); return new Element( 'a', $attributes, - $State->applyTo((new Parsedown($NewState))->line($this->label)) + $State->applyTo((new Parsedown($State))->line($this->label)) ); } );