3 // This file passes the content of the Readme.md file in the same directory
4 // through the Markdown filter. You can adapt this sample code in any way
7 // Install PSR-4-compatible class autoloader
8 spl_autoload_register(function($class){
9 require str_replace('\\', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
11 // If using Composer, use this instead:
12 //require 'vendor/autoloader.php';
17 // Read file and pass content through the Markdown parser
18 $text = file_get_contents('Readme.md');
19 $html = Markdown::defaultTransform($text);
25 <title>PHP Markdown Lib - Readme</title>
29 // Put HTML content in the document