]> git.mxchange.org Git - friendica.git/commitdiff
Cleanup + Standards for library/markdown.php
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 25 Mar 2017 06:03:47 +0000 (02:03 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sat, 25 Mar 2017 06:03:47 +0000 (02:03 -0400)
library/markdown.php

index e0b65ba0aa9847a28cff092249ac7bd31d90e495..769bdb1219745fd68e338cc2de97f161c6477d48 100644 (file)
@@ -1,20 +1,12 @@
 <?php
-//# Install PSR-0-compatible class autoloader
-//spl_autoload_register(function($class){
-//     require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
-//});
-
-require_once("library/php-markdown/Michelf/MarkdownExtra.inc.php");
-# Get Markdown class
+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
        $MarkdownParser = new MarkdownExtra();
        $MarkdownParser->hard_wrap = true;
        $html = $MarkdownParser->transform($text);
@@ -23,4 +15,3 @@ function Markdown($text) {
 
        return $html;
 }
-?>