diff --git a/eng/common/scripts/Verify-Links.ps1 b/eng/common/scripts/Verify-Links.ps1 index ca40793dfa..6267d4d1b2 100644 --- a/eng/common/scripts/Verify-Links.ps1 +++ b/eng/common/scripts/Verify-Links.ps1 @@ -330,6 +330,10 @@ function GetLinks([System.Uri]$pageUri) try { $response = Invoke-WebRequest -Uri $pageUri -UserAgent $userAgent $content = $response.Content + + if ($pageUri.ToString().EndsWith(".md")) { + $content = (ConvertFrom-MarkDown -InputObject $content).html + } } catch { $statusCode = $_.Exception.Response.StatusCode.value__