enable simple linebreaks in markdown
This commit is contained in:
parent
00178788b2
commit
06c725dab1
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ class Markdown extends \Parsedown {
|
|||
* @return string
|
||||
*/
|
||||
public function text($markdown) {
|
||||
$this->setBreaksEnabled(true);
|
||||
$html = parent::text($markdown);
|
||||
|
||||
return $this->purifyHtml($html);
|
||||
|
|
Reference in a new issue