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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user