mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
17 lines
355 B
PHP
17 lines
355 B
PHP
<?php
|
|
require_once "library/php-markdown/Michelf/MarkdownExtra.inc.php";
|
|
use \Michelf\MarkdownExtra;
|
|
|
|
function Markdown($text) {
|
|
$a = get_app();
|
|
|
|
$stamp1 = microtime(true);
|
|
|
|
$MarkdownParser = new MarkdownExtra();
|
|
$MarkdownParser->hard_wrap = true;
|
|
$html = $MarkdownParser->transform($text);
|
|
|
|
$a->save_timestamp($stamp1, "parser");
|
|
|
|
return $html;
|
|
}
|