Skip to content

Commit dc95dbf

Browse files
azure-sdksima-zhu
andauthored
Fixed the bug of replacing img src with href text (Azure#15828)
Co-authored-by: Sima Zhu <sizhu@microsoft.com>
1 parent 37af8a2 commit dc95dbf

File tree

1 file changed

+1
-1
lines changed
  • eng/common/docgeneration/templates/matthews/styles

1 file changed

+1
-1
lines changed

eng/common/docgeneration/templates/matthews/styles/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $(function () {
7676
// Add text to empty links
7777
$("p > a").each(function () {
7878
var link = $(this).attr('href')
79-
if ($(this).text() === "") {
79+
if ($(this).text() === "" && $(this).children().attr("src") === "") {
8080
$(this).html(link)
8181
}
8282
});

0 commit comments

Comments
 (0)