Added Parsedown + ParsedownExtra + Prism
This commit is contained in:
17
www/protected/components/parsedown/ParsedownHelper.php
Normal file
17
www/protected/components/parsedown/ParsedownHelper.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Class ParsedownHelper
|
||||
*/
|
||||
class ParsedownHelper {
|
||||
/**
|
||||
* @param string $raw_text
|
||||
* @return string
|
||||
*/
|
||||
public static function parse($raw_text)
|
||||
{
|
||||
$Instance = new ParsedownExtra();
|
||||
|
||||
return $Instance->text($raw_text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user