Browse Source

Added the markdown parser to the time measurement system

pull/1417/head
Michael Vogel 6 years ago
parent
commit
e0d3594933
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      library/markdown.php

+ 7
- 0
library/markdown.php 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;
}
?>

Loading…
Cancel
Save