Skip to content

Commit

Permalink
(AB#263698) Fix broken anchor in Compare-Object docs
Browse files Browse the repository at this point in the history
Prior to this change, the document used a self-closing
anchor tag to enable quick-linking to the third example.

This change updates the anchor to wrap the text `Example 3`
in the heading, per guidance for the platform. This ensures
that the remainder of the page isn't a link to the anchor.

- Fixes AB#263698
  • Loading branch information
michaeltlombardi committed Jun 11, 2024
1 parent 9672a80 commit c842272
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
6 changes: 2 additions & 4 deletions reference/5.1/Microsoft.PowerShell.Utility/Compare-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 06/11/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Compare-Object
Expand Down Expand Up @@ -90,9 +90,7 @@ InputObject SideIndicator
bird ==
```

<a id="ex3" />

### Example 3 - Show the difference when using the PassThru parameter
### <a id="ex3" >Example 3</a> - Show the difference when using the PassThru parameter

Normally, `Compare-Object` returns a **PSCustomObject** type with the following properties:

Expand Down
6 changes: 2 additions & 4 deletions reference/7.2/Microsoft.PowerShell.Utility/Compare-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 06/11/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Compare-Object
Expand Down Expand Up @@ -91,9 +91,7 @@ InputObject SideIndicator
bird ==
```

<a id="ex3" />

### Example 3 - Show the difference when using the PassThru parameter
### <a id="ex3" >Example 3</a> - Show the difference when using the PassThru parameter

Normally, `Compare-Object` returns a **PSCustomObject** type with the following properties:

Expand Down
6 changes: 2 additions & 4 deletions reference/7.4/Microsoft.PowerShell.Utility/Compare-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 06/11/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Compare-Object
Expand Down Expand Up @@ -91,9 +91,7 @@ InputObject SideIndicator
bird ==
```

<a id="ex3" />

### Example 3 - Show the difference when using the PassThru parameter
### <a id="ex3" >Example 3</a> - Show the difference when using the PassThru parameter

Normally, `Compare-Object` returns a **PSCustomObject** type with the following properties:

Expand Down
6 changes: 2 additions & 4 deletions reference/7.5/Microsoft.PowerShell.Utility/Compare-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 06/11/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/compare-object?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Compare-Object
Expand Down Expand Up @@ -91,9 +91,7 @@ InputObject SideIndicator
bird ==
```

<a id="ex3" />

### Example 3 - Show the difference when using the PassThru parameter
### <a id="ex3" >Example 3</a> - Show the difference when using the PassThru parameter

Normally, `Compare-Object` returns a **PSCustomObject** type with the following properties:

Expand Down

0 comments on commit c842272

Please sign in to comment.