some simplification

This commit is contained in:
Tobias Diekershoff 2017-08-09 19:19:42 +02:00
parent a0ecd5ab2e
commit 147bfb0576

View file

@ -29,11 +29,7 @@ function Markdown($text, $hardwrap = true) {
$stamp1 = microtime(true); $stamp1 = microtime(true);
$MarkdownParser = new MarkdownExtra(); $MarkdownParser = new MarkdownExtra();
if ($hardwrap) { $MarkdownParser->hard_wrap = $hardwrap;
$MarkdownParser->hard_wrap = true;
} else {
$MarkdownParser->hard_wrap = false;
}
$html = $MarkdownParser->transform($text); $html = $MarkdownParser->transform($text);
$a->save_timestamp($stamp1, "parser"); $a->save_timestamp($stamp1, "parser");