X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2Fmarkdown.php;h=a8152c2ab61929b8e6b75fb45adf14ee0839991b;hb=352b168e2d2672a5e0c905c93ec771c960142b38;hp=8958e8c842ca129d88d7b14f0910195c7130a50b;hpb=72cfb86773e090d0afe4246af31e0b81f63308fc;p=friendica.git diff --git a/library/markdown.php b/library/markdown.php index 8958e8c842..a8152c2ab6 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, "parser"); + return $html; } ?>