<?php
 namespace Module\Vendor\Markdown; use League\CommonMark\CommonMarkConverter; class MarkdownUtil { public static function convertToHtml($markdown) { $converter = new CommonMarkConverter([ 'renderer' => [ 'soft_break' => "<br />", ], ]); return $converter->convertToHtml($markdown); } }