Library to convert html to markdown. Use like
$markdown= Yii::$app->getModule('html2md')->convert($html);
A little check would of course be better:
if (null == $h2m= Yii::$app->getModule('html2md'))
show_error('html2md not installed or activivated. Shame!');
else
$markdown= $h2m->convert($html);
Unzip the latest archive into */protected/modules folder, activate in Administration / Modules.
Module website: https://github.com/Themroc/humhub_html2md
Author: Themroc 7hemroc@gmail.com
https://github.com/Themroc/humhub_html2md/commits/master
https://github.com/Themroc/humhub_html2md/issues