1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 22:26:46 +02:00

feat(markdown): Get ability to access markdown parser instance #468

This commit is contained in:
Awilum
2020-09-02 18:12:37 +03:00
parent 310d59974f
commit f60f474f35

View File

@@ -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);
}