Switched to MarkdownExtra implementation

It supports tables!
This commit is contained in:
Marcin Kurczewski 2014-03-03 21:05:08 +01:00
parent b86362b366
commit 95bcc89aa6
2 changed files with 3 additions and 2 deletions

View file

@ -1,12 +1,12 @@
<?php
class CustomMarkdown extends \Michelf\Markdown
class CustomMarkdown extends \Michelf\MarkdownExtra
{
protected $simple = false;
public function __construct($simple = false)
{
$this->simple = $simple;
$this->no_markup = true;
$this->no_markup = $simple;
$this->span_gamut += ['doSpoilers' => 71];
$this->span_gamut += ['doSearchPermalinks' => 72];
$this->span_gamut += ['doStrike' => 6];

View file

@ -12,6 +12,7 @@ ini_set('memory_limit', '128M');
//basic include calls, autoloader init
require_once $rootDir . 'lib' . DS . 'php-markdown' . DS . 'Michelf' . DS . 'Markdown.php';
require_once $rootDir . 'lib' . DS . 'php-markdown' . DS . 'Michelf' . DS . 'MarkdownExtra.php';
require_once $rootDir . 'lib' . DS . 'chibi-core' . DS . 'Facade.php';
\Chibi\AutoLoader::init([__DIR__, $rootDir . 'lib' . DS . 'chibi-sql']);