1
0
Fork 0

enable simple linebreaks in markdown

This commit is contained in:
Lukas Winkler 2017-09-18 19:19:44 +02:00
parent 00178788b2
commit 06c725dab1

View file

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