phile / textile
Replace the default parser (Markdown) in Phile with the PHP-Textile (https://github.com/textile/php-textile) parser.
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:phile-plugin
Requires
- netcarver/textile: 3.5.*
- phile-cms/phile: >=1
- phile-cms/plugin-installer-plugin: >=1
This package is auto-updated.
Last update: 2024-11-29 04:46:38 UTC
README
Replace the default parser (Markdown) in Phile with the PHP-Textile parser.
1. Installation
- Install Phile
1.1 Installation (composer)
php composer.phar require phile/textile:*
1.2 Installation (Download)
- Clone this repo into
plugins/phile/textile
2. Activation
After you have installed the plugin. You need to add the following line to your config.php
file:
$config['plugins']['phile\\textile'] = array('active' => true);
Then add the Textile dependency to your composer.json file:
{ "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.
After you have installed the plugin. You need to add the following line to your config.php
file:
$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:
define('CONTENT_EXT', '.textile'); // default is '.md'
Not a drop in replacement for Markdown
Textile is not Markdown. It is very similar but there are quite a few differences. Please see this textile cheatsheet for the basic syntax.
I have included an index.textile
file to show how to recreate the index content page from the default theme.
Why use this over Markdown
- Personal Preference