dev-master
9999999-dev http://philecms.comReplace the default parser (Markdown) in Phile with the PHP-Textile (https://github.com/textile/php-textile) parser.
MIT
The Requires
by James Doyle
cms content phile
Replace the default parser (Markdown) in Phile with the PHP-Textile (https://github.com/textile/php-textile) parser.
Replace the default parser (Markdown) in Phile with the PHP-Textile parser., (*1)
php composer.phar require phile/textile:*
plugins/phile/textile
After you have installed the plugin. You need to add the following line to your config.php
file:, (*2)
$config['plugins']['phile\\textile'] = array('active' => true);
Then add the Textile dependency to your composer.json file:, (*3)
{ "require": { "twig/twig": "1.14.*", "michelf/php-markdown": "1.3", "netcarver/textile": "3.5.*" // the textile parser } }
Now run your composer install
command as normal., (*4)
After you have installed the plugin. You need to add the following line to your config.php
file:, (*5)
$config['plugins'] = array( 'phile\\parserMarkdown' => array('active' => false), 'phile\\textile' => array('active' => true) // use textile );
You will also need to use .textile
file extensions for content. To change the default open the index.php
file in the root directory, and change the following line:, (*6)
define('CONTENT_EXT', '.textile'); // default is '.md'
Textile is not Markdown. It is very similar but there are quite a few differences. Please see this textile cheatsheet for the basic syntax., (*7)
I have included an index.textile
file to show how to recreate the index content page from the default theme., (*8)
Replace the default parser (Markdown) in Phile with the PHP-Textile (https://github.com/textile/php-textile) parser.
MIT
cms content phile