mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00: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;
|
use \Michelf\MarkdownExtra;
|
||||||
|
|
||||||
function Markdown($text) {
|
function Markdown($text) {
|
||||||
|
|
||||||
|
$a = get_app();
|
||||||
|
|
||||||
|
$stamp1 = microtime(true);
|
||||||
|
|
||||||
# Read file and pass content through the Markdown parser
|
# Read file and pass content through the Markdown parser
|
||||||
$html = MarkdownExtra::defaultTransform($text);
|
$html = MarkdownExtra::defaultTransform($text);
|
||||||
|
|
||||||
|
$a->save_timestamp($stamp1, "rendering");
|
||||||
|
|
||||||
return $html;
|
return $html;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue