Added the markdown parser to the time measurement system
This commit is contained in:
parent
17bd46793e
commit
e0d3594933
|
@ -9,9 +9,16 @@ require_once("library/php-markdown/Michelf/MarkdownExtra.inc.php");
|
|||
use \Michelf\MarkdownExtra;
|
||||
|
||||
function Markdown($text) {
|
||||
|
||||
$a = get_app();
|
||||
|
||||
$stamp1 = microtime(true);
|
||||
|
||||
# Read file and pass content through the Markdown parser
|
||||
$html = MarkdownExtra::defaultTransform($text);
|
||||
|
||||
$a->save_timestamp($stamp1, "rendering");
|
||||
|
||||
return $html;
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user