aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/michelf/php-markdown/Readme.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2018-03-23 10:25:58 +0100
committerGitHub <noreply@github.com>2018-03-23 10:25:58 +0100
commite2b9162a30f60ba74038c4aa999d31d5e9338d7c (patch)
treedce716a2a6955b0b43d6176daa75517982a65541 /vendor/michelf/php-markdown/Readme.php
parenteec4d9b5ad2ad3fbc4d5c5651fcccdc81b248af9 (diff)
parentc80837a9e6a1d5049a03fbb608b2b650c1b0f92d (diff)
downloadvolse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.gz
volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.tar.bz2
volse-hubzilla-e2b9162a30f60ba74038c4aa999d31d5e9338d7c.zip
Merge pull request #1010 from dawnbreak/dev
:arrow_up: Update libraries.
Diffstat (limited to 'vendor/michelf/php-markdown/Readme.php')
-rw-r--r--vendor/michelf/php-markdown/Readme.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/michelf/php-markdown/Readme.php b/vendor/michelf/php-markdown/Readme.php
index 89449dea4..e473d7336 100644
--- a/vendor/michelf/php-markdown/Readme.php
+++ b/vendor/michelf/php-markdown/Readme.php
@@ -4,13 +4,15 @@
// through the Markdown filter. You can adapt this sample code in any way
// you like.
-// Install PSR-0-compatible class autoloader
+// Install PSR-4-compatible class autoloader
spl_autoload_register(function($class){
- require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
+ require str_replace('\\', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
});
+// If using Composer, use this instead:
+//require 'vendor/autoloader.php';
// Get Markdown class
-use \Michelf\Markdown;
+use Michelf\Markdown;
// Read file and pass content through the Markdown parser
$text = file_get_contents('Readme.md');