]> git.mxchange.org Git - friendica.git/blobdiff - mod/help.php
Move library/markdown.php to src
[friendica.git] / mod / help.php
index 9a4b275f956185f1890701b9329c2cb167fa209a..65221165fdd5d23e6c14645fa3ad13f447e2e27a 100644 (file)
@@ -1,10 +1,9 @@
 <?php
 
 use Friendica\App;
+use Friendica\Content\Text\Markdown;
 use Friendica\Core\System;
 
-require_once('library/markdown.php');
-
 if (!function_exists('load_doc_file')) {
 
        function load_doc_file($s) {
@@ -50,7 +49,7 @@ function help_content(App $a) {
                $filename = "Home";
                $a->page['title'] = t('Help');
        } else {
-               $a->page['aside'] = Markdown($home, false);
+               $a->page['aside'] = Markdown::convert($home, false);
        }
 
        if (!strlen($text)) {
@@ -61,7 +60,7 @@ function help_content(App $a) {
                                ));
        }
 
-       $html = Markdown($text, false);
+       $html = Markdown::convert($text, false);
 
        if ($filename !== "Home") {
                // create TOC but not for home