* @copyright 2004-2016 Michel Fortin
* @copyright (Original Markdown) 2004-2006 John Gruber
*/
// Install PSR-0-compatible class autoloader
spl_autoload_register(function($class) {
require preg_replace(
'{\\\\|_(?!.*\\\\)}',
DIRECTORY_SEPARATOR,
ltrim($class, '\\')
) . '.php';
});
// Get Markdown class
use \Michelf\Markdown;
// Read file and pass content through the Markdown parser
$text = file_get_contents('Readme.md');
$html = Markdown::defaultTransform($text);
?>
PHP Markdown Lib - Readme