mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
Add formatting libraries to composer.json
This commit is contained in:
parent
59ee4a7387
commit
2b008f7be6
202 changed files with 28022 additions and 133 deletions
37
vendor/michelf/php-smartypants/Readme.php
vendored
Normal file
37
vendor/michelf/php-smartypants/Readme.php
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
# This file passes the content of the Readme.md file in the same directory
|
||||
# through the SmartyPants filter. You can adapt this sample code in any way
|
||||
# you like.
|
||||
|
||||
########
|
||||
# NOTE : This file requires Markdown to be available to parse the readme file.
|
||||
########
|
||||
|
||||
# Install PSR-0-compatible class autoloader
|
||||
spl_autoload_register(function($class){
|
||||
require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
|
||||
});
|
||||
|
||||
# Get SmartyPants and Markdown classes
|
||||
use \Michelf\SmartyPants;
|
||||
use \Michelf\MarkdownExtra;
|
||||
|
||||
# Read file and pass content through the Markdown praser
|
||||
$text = file_get_contents('Readme.md');
|
||||
$html = MarkdownExtra::defaultTransform($text);
|
||||
$html = SmartyPants::defaultTransform($html);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PHP Markdown Lib - Readme</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
# Put HTML content in the document
|
||||
echo $html;
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue