1
0
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:
Aidan Woods
2019-01-25 19:48:03 +00:00
parent 5a50930cb0
commit eb90905d27
8 changed files with 9 additions and 29 deletions

View File

@@ -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);