Hi,
I use Commonmark and it works well but I have a case where I need to display my text on a non HTML output.
Is there a way to take the markdow text and return the text without the Markdown ? (and keep list "-") ?
I know something like this could works, but I was searching for the proper way (extension maybe ?) to do this, and if one already exists.
$string = str_replace(['<li>'], ['- '], $htmlFromMarkdown);
return strip_tags($string);
Thanks.
Hi,
I use Commonmark and it works well but I have a case where I need to display my text on a non HTML output.
Is there a way to take the markdow text and return the text without the Markdown ? (and keep list "-") ?
I know something like this could works, but I was searching for the proper way (extension maybe ?) to do this, and if one already exists.
Thanks.