mirror of
https://github.com/friendica/friendica
synced 2024-12-13 02:57:07 +01:00
Added the markdown parser to the time measurement system
This commit is contained in:
parent
17bd46793e
commit
e0d3594933
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue