diff --git a/site/config/site.yml b/site/config/site.yml index 9af49ee..c27a42c 100755 --- a/site/config/site.yml +++ b/site/config/site.yml @@ -14,6 +14,7 @@ charset: UTF-8 theme: default plugins: + - Markdown pages: flush_cache: false diff --git a/site/plugins/Markdown/Markdown.php b/site/plugins/Markdown/Markdown.php new file mode 100755 index 0000000..a323fcc --- /dev/null +++ b/site/plugins/Markdown/Markdown.php @@ -0,0 +1,24 @@ +monstra = $c; + $this->monstra['filters']->addListener('content', function($content) { + return $this->monstra['markdown']->text($content); + }); + } +} + +new Markdown($monstra); diff --git a/site/plugins/Markdown/Markdown.yml b/site/plugins/Markdown/Markdown.yml new file mode 100755 index 0000000..c548e5f --- /dev/null +++ b/site/plugins/Markdown/Markdown.yml @@ -0,0 +1,13 @@ +name: Markdown +version: 1.0.0 +description: "Markdown parser plugin for Monstra" +author: + name: Sergey Romanenko + email: awilum@msn.com + url: http://monstra.org +homepage: http://monstra.org +bugs: http://monstra.org +license: MIT + +# Plugin settings +enabled: true