Added the markdown parser to the time measurement system

This commit is contained in:
Michael Vogel 2015-02-24 00:08:17 +01:00
parent 17bd46793e
commit e0d3594933

View File

@ -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;
}
?>