Skip to content

PhileCMS/phileParserParsedown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phileParserParsedown

Use the Parsedown parser in Phile.

1.1 Installation (composer)

php composer.phar require phile/parsedown:*

1.2 Installation (Download)

  • Install the latest version of Phile
  • Clone or download this repo into plugins/phile/parsedown

2. Activation

After you have installed the plugin. You need to add the following line to your config.php file:

$config['plugins']['phile\\parsedown'] = array('active' => true);`

Then add the Parsedown dependency to your composer.json file:

{
  "require": {
    "erusev/parsedown": "*" // the parsedown 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), // disable the default parser
  'phile\\parsedown' => array('active' => true) // use parsedown
);

Why use this over Markdown?

  • Speed
  • Consistency
  • Github flavoured by default
  • Tested in PHP 5.2, 5.3, 5.4 and 5.5
  • Friendly to international input

Why not use it?

  • No table support
  • Lack of settings and extensions