From ed1908efa149e2dd8b567c4a36d4dcc56b754769 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 16 Dec 2020 10:36:22 -0800 Subject: [PATCH] Fixed the bug of replacing img src with href text (#1193) Co-authored-by: Sima Zhu --- eng/common/docgeneration/templates/matthews/styles/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/docgeneration/templates/matthews/styles/main.js b/eng/common/docgeneration/templates/matthews/styles/main.js index 173f60aaf..39fb2c34c 100644 --- a/eng/common/docgeneration/templates/matthews/styles/main.js +++ b/eng/common/docgeneration/templates/matthews/styles/main.js @@ -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) } });