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-0-compatible class autoloader
8 spl_autoload_register(function($class){
9 require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
13 use \Michelf\Markdown;
15 # Read file and pass content through the Markdown parser
16 $text = file_get_contents('Readme.md');
17 $html = Markdown::defaultTransform($text);
23 <title>PHP Markdown Lib - Readme</title>
27 # Put HTML content in the document