diff --git a/eng/common/docgeneration/templates/matthews/styles/main.js b/eng/common/docgeneration/templates/matthews/styles/main.js
index <HASH>..<HASH> 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)
         }
     });
Fixed the bug of replacing img src with href text (#<I>)