Switched to MarkdownExtra implementation
It supports tables!
This commit is contained in:
parent
b86362b366
commit
95bcc89aa6
2 changed files with 3 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
class CustomMarkdown extends \Michelf\Markdown
|
class CustomMarkdown extends \Michelf\MarkdownExtra
|
||||||
{
|
{
|
||||||
protected $simple = false;
|
protected $simple = false;
|
||||||
|
|
||||||
public function __construct($simple = false)
|
public function __construct($simple = false)
|
||||||
{
|
{
|
||||||
$this->simple = $simple;
|
$this->simple = $simple;
|
||||||
$this->no_markup = true;
|
$this->no_markup = $simple;
|
||||||
$this->span_gamut += ['doSpoilers' => 71];
|
$this->span_gamut += ['doSpoilers' => 71];
|
||||||
$this->span_gamut += ['doSearchPermalinks' => 72];
|
$this->span_gamut += ['doSearchPermalinks' => 72];
|
||||||
$this->span_gamut += ['doStrike' => 6];
|
$this->span_gamut += ['doStrike' => 6];
|
||||||
|
|
|
@ -12,6 +12,7 @@ ini_set('memory_limit', '128M');
|
||||||
|
|
||||||
//basic include calls, autoloader init
|
//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 . 'Markdown.php';
|
||||||
|
require_once $rootDir . 'lib' . DS . 'php-markdown' . DS . 'Michelf' . DS . 'MarkdownExtra.php';
|
||||||
require_once $rootDir . 'lib' . DS . 'chibi-core' . DS . 'Facade.php';
|
require_once $rootDir . 'lib' . DS . 'chibi-core' . DS . 'Facade.php';
|
||||||
\Chibi\AutoLoader::init([__DIR__, $rootDir . 'lib' . DS . 'chibi-sql']);
|
\Chibi\AutoLoader::init([__DIR__, $rootDir . 'lib' . DS . 'chibi-sql']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue