mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Default value is intrinsic to a configurable, we can just always
retrieve that.
This commit is contained in:
@@ -64,9 +64,7 @@ final class Markup implements Inline
|
||||
return new Handler(
|
||||
/** @return Text|RawHtml */
|
||||
function (State $State) {
|
||||
$SafeMode = $State->getOrDefault(SafeMode::class);
|
||||
|
||||
if ($SafeMode->isEnabled()) {
|
||||
if ($State->get(SafeMode::class)->isEnabled()) {
|
||||
return new Text($this->html);
|
||||
} else {
|
||||
return new RawHtml($this->html);
|
||||
|
||||
Reference in New Issue
Block a user