+ if (class_exists('\\Michelf\\Markdown', true)) {
+ //composer-installed version 1.4+
+ $markdown = \Michelf\Markdown::defaultTransform(
+ $file->getContent()
+ );
+ } else {
+ //PEAR-installed version 1.0.2 has a different API
+ require_once 'markdown.php';
+ $markdown = \markdown($file->getContent());
+ }