mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
[parser] Simplify code by removing if statement
This commit is contained in:
parent
b350d5a32e
commit
4bf7881e5c
1 changed files with 1 additions and 4 deletions
|
@ -12,10 +12,7 @@ register_module([
|
||||||
$parser->setInternalLinkBase("?page=%s");
|
$parser->setInternalLinkBase("?page=%s");
|
||||||
add_parser("parsedown", function($source) use ($parser) {
|
add_parser("parsedown", function($source) use ($parser) {
|
||||||
global $settings;
|
global $settings;
|
||||||
if($settings->clean_raw_html)
|
$parser->setMarkupEscaped($settings->clean_raw_html);
|
||||||
$parser->setMarkupEscaped(true);
|
|
||||||
else
|
|
||||||
$parser->setMarkupEscaped(false);
|
|
||||||
$result = $parser->text($source);
|
$result = $parser->text($source);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in a new issue