no message

This commit is contained in:
kuaifan
2025-07-29 16:22:37 +08:00
parent cdc27004bf
commit fe9d23a0ff
3 changed files with 47 additions and 34 deletions

View File

@@ -3049,12 +3049,13 @@ class Base
/**
* html 转 MD(markdown)
* @param $html
* @param array $options
* @return mixed|string
*/
public static function html2markdown($html)
public static function html2markdown($html, $options = [])
{
try {
$converter = new HtmlConverter();
$converter = new HtmlConverter($options);
return $converter->convert($html);
} catch (\Exception) {
return $html;