allow markdown in timesheet descriptions (#296)
This commit is contained in:
@@ -31,10 +31,12 @@ class Markdown
|
||||
|
||||
/**
|
||||
* @param string $text
|
||||
* @param bool $safe
|
||||
* @return string
|
||||
*/
|
||||
public function toHtml(string $text): string
|
||||
public function toHtml(string $text, bool $safe = true): string
|
||||
{
|
||||
$this->parser->setSafeMode($safe);
|
||||
return $this->parser->text($text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user