-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
$cmdHelps = Import-MamlHelp -Path ./test/Pester/assets/Microsoft.PowerShell.Commands.Utility.dll-Help.xml
$cmdHelps[0].Syntax[0].SyntaxParameters | ft ParameterName,ParameterType
And the syntax of the resulting conversion to Markdown also duplicates each parameter.
Export-MarkdownCommandHelp -CommandHelp $cmdHelps[0] -OutputFolder ...
Expected behavior
ParameterName ParameterType
------------- -------------
MemberType System.Management.Automation.PSMemberTypes
Name System.String
Value System.Object
SecondValue System.Object
Force System.Management.Automation.SwitchParameter
InputObject System.Management.Automation.PSObject
PassThru System.Management.Automation.SwitchParameter
TypeName System.String
Actual behavior
ParameterName ParameterType
------------- -------------
MemberType System.Management.Automation.PSMemberTypes
MemberType System.Management.Automation.PSMemberTypes
Name System.String
Name System.String
Value System.Object
Value System.Object
SecondValue System.Object
SecondValue System.Object
Force System.Management.Automation.SwitchParameter
Force System.Management.Automation.SwitchParameter
InputObject System.Management.Automation.PSObject
InputObject System.Management.Automation.PSObject
PassThru System.Management.Automation.SwitchParameter
PassThru System.Management.Automation.SwitchParameter
TypeName System.String
TypeName System.String
Error details
Environment data
PS> $PSVersionTable
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Ubuntu 24.04.3 LTS
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
1.0.1
Visuals
No response
Metadata
Metadata
Assignees
Labels
No labels