Merge pull request #36 from ibr/master

Using composer version of Markdown
This commit is contained in:
Gilbert Pellegrom 2013-09-04 03:23:16 -07:00
commit b3c7648e3a
4 changed files with 5 additions and 1739 deletions

View file

@ -1,5 +1,6 @@
{
"require": {
"twig/twig": "1.12.*"
"twig/twig": "1.12.*",
"michelf/php-markdown": "1.3"
}
}
}

View file

@ -9,8 +9,5 @@ define('THEMES_DIR', ROOT_DIR .'themes/');
define('CACHE_DIR', LIB_DIR .'cache/');
require(ROOT_DIR .'vendor/autoload.php');
require(LIB_DIR .'markdown.php');
require(LIB_DIR .'pico.php');
$pico = new Pico();
?>

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
<?php
use \Michelf\MarkdownExtra;
/**
* Pico
*
@ -132,7 +132,7 @@ class Pico {
{
$content = preg_replace('#/\*.+?\*/#s', '', $content); // Remove comments and meta
$content = str_replace('%base_url%', $this->base_url(), $content);
$content = Markdown($content);
$content = MarkdownExtra::defaultTransform($content);
return $content;
}