Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eng/common/scripts/Verify-Links.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down