UnusedReferenceLinkDefinitions
The
UnusedReferenceLinkDefinitions()
method returns every reference link definition that doesn’t have at least one matching reference link from the document.less than a minute
Overloads
UnusedReferenceLinkDefinitions()
- Returns every reference link definition that doesn’t have at least one matching reference link from the document.
UnusedReferenceLinkDefinitions()
Returns every reference link definition that doesn’t have at least one matching reference link from the document.
[ParsedDocument] UnusedReferenceLinkDefinitions()
Parameters
None.
Returns
The list of links from the document whose Kind is ReferenceDefinition
and whose
ReferenceID doesn’t match either:
- the Text of any links whose Kind is
TextSelfReference
orImageSelfReference
- the ReferenceID of any links whose Kind is
TextUsingReference
orImageUsingReference
Exceptions
None.
Examples
The following example demonstrates retrieving the list of unused reference definitions from a parsed document.
$Doc = Get-Document ./README.md
$Doc.UnusedReferenceLinkDefinitions()
Last modified March 3, 2023: (MAINT) Rename Source folder to Projects (8b45aed)