Skip to content

Commit

Permalink
Introduce local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jun 26, 2024
1 parent c527e97 commit 4d44b83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/framework/src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ public static function markdown(string $filename, ?string $default = null): ?Htm
if ($default === null) {
return null;
} else {
return new HtmlString(trim(Markdown::render($default, MarkdownDocument::class)));
$markdown = $default;
return new HtmlString(trim(Markdown::render($markdown, MarkdownDocument::class)));
}
}

return new HtmlString(trim(Markdown::render(Filesystem::get($path), MarkdownDocument::class)));
$markdown = Filesystem::get($path);
return new HtmlString(trim(Markdown::render($markdown, MarkdownDocument::class)));
}

/**
Expand Down

0 comments on commit 4d44b83

Please sign in to comment.