ParsedLinks

The ParsedLinks() method returns the parsed links from the document, parsing if needed or if Force is $true.

Overloads

ParsedLinks()
Returns the parsed links from the document, parsing it first if needed.
ParsedLinks([bool]$Force)
Returns the parsed links from the document, parsing it first if needed or if Force is $true.

Returns the parsed links from the document, parsing it first if needed.

[ParsedDocument] ParsesLinks()

Parameters

None.

Returns

The list of parsed links from the document.

Exceptions

None.

Examples

The following example demonstrates retrieving the links from a document.

$Doc = Get-Document ./README.md
$Doc.ParsedLinks()

ParsedLinks([bool]$Force)

Returns the parsed links from the document, parsing it first if needed or if Force is $true.

[ParsedDocument] ParsesLinks([bool]$Force)

Parameters

Force

Type
[System.Boolean](https://learn.microsoft.com/dotnet/api/System.Boolean)

If Force is $true, the document’s body is parsed for links, even if it was already parsed.

Returns

The list of parsed links from the document.

Exceptions

None.

Examples

The following example demonstrates retrieving the links from a document, always parsing it again, even if the list of links has been retrieved before.

$Doc = Get-Document ./README.md
$Doc.ParsedLinks($true)