Sha256: 94414b655e7b92d9d26ba5be7f173f7db8011a3a97d219118b478e1a3c023f1f

Contents?: true

Size: 732 Bytes

Versions: 10

Compression:

Stored size: 732 Bytes

Contents

<?php

# This file passes the content of the Readme.md file in the same directory
# through the Markdown filter. You can adapt this sample code in any way
# you like.

# 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);

?>
<!DOCTYPE html>
<html>
    <head>
        <title>PHP Markdown Lib - Readme</title>
    </head>
    <body>
		<?php
			# Put HTML content in the document
			echo $html;
		?>
    </body>
</html>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.3.1 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.3.0 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.5 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.4 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.3 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.2 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.1 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.2.0 vendor/michelf/php-markdown/Readme.php
guard-mthaml-0.1.0 vendor/michelf/php-markdown/Readme.php