From f60f474f3510ad09970943d9ed5d5b1288ca6dd4 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 2 Sep 2020 18:12:37 +0300 Subject: [PATCH] feat(markdown): Get ability to access markdown parser instance #468 --- src/flextype/app/Support/Parsers/Markdown.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/flextype/app/Support/Parsers/Markdown.php b/src/flextype/app/Support/Parsers/Markdown.php index d09d2a73..81dd0b0d 100644 --- a/src/flextype/app/Support/Parsers/Markdown.php +++ b/src/flextype/app/Support/Parsers/Markdown.php @@ -28,6 +28,16 @@ class Markdown $this->markdown = $markdown; } + /** + * Get Markdown instance + * + * @access public + */ + public function getInstance() + { + return $this->markdown; + } + /** * Takes a MARKDOWN encoded string and converts it into a PHP variable. * @@ -62,7 +72,7 @@ class Markdown return $this->markdown->text($input); } - protected function getCacheID($input) + public function getCacheID($input) { return md5('markdown' . $input); }