优化Markdown图片加载失败时提示信息

This commit is contained in:
yangjian 2023-05-22 07:47:04 +08:00
parent 03b8310acd
commit 938e0f2692

View File

@ -3688,6 +3688,7 @@
}
}
}
if(!text.trim()){text="invalid image(图片无法加载)";}
return begin + "<img src=\""+href+"\" title=\""+title+"\" alt=\""+text+"\" "+attr+" />" + end;
};