some simplification
This commit is contained in:
parent
a0ecd5ab2e
commit
147bfb0576
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user