1
1
Fork 0

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);
$MarkdownParser = new MarkdownExtra();
if ($hardwrap) {
$MarkdownParser->hard_wrap = true;
} else {
$MarkdownParser->hard_wrap = false;
}
$MarkdownParser->hard_wrap = $hardwrap;
$html = $MarkdownParser->transform($text);
$a->save_timestamp($stamp1, "parser");