diff --git a/flextype/dependencies.php b/flextype/dependencies.php index cab2f2cf..f233521c 100644 --- a/flextype/dependencies.php +++ b/flextype/dependencies.php @@ -33,6 +33,7 @@ use League\Glide\Responses\SlimResponseFactory; use League\Glide\ServerFactory; use Monolog\Handler\StreamHandler; use Monolog\Logger; +use ParsedownExtra as Markdown; use Slim\Csrf\Guard; use Slim\Flash\Messages; use Slim\Http\Environment; @@ -179,6 +180,13 @@ $flextype['shortcodes'] = static function ($container) { return new ShortcodeFacade(); }; +/** + * Add Markdown service to Flextype container + */ +$flextype['markdown'] = static function ($container) { + return new Markdown(); +}; + /** * Add entries service to Flextype container */