diff --git a/library/markdown.php b/library/markdown.php index 8958e8c84..4d36c1d14 100644 --- a/library/markdown.php +++ b/library/markdown.php @@ -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; } ?>