Fixed the bug of replacing img src with href text (#1193)

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
This commit is contained in:
Azure SDK Bot 2020-12-16 10:36:22 -08:00 committed by GitHub
parent 5e7dc42df8
commit ed1908efa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ $(function () {
// Add text to empty links
$("p > a").each(function () {
var link = $(this).attr('href')
if ($(this).text() === "") {
if ($(this).text() === "" && $(this).children().attr("src") === "") {
$(this).html(link)
}
});