Closed
Description
Items in the related links section are required to be links. Many of my module's links point to other, related commands in the module. This is similar to PowerShell's own help, where only the names of commands are given in the related links section.
For example, here is Get-ChildItem
cmdlet's related links section:
Online Version: http://go.microsoft.com/fwlink/p/?linkid=290488
Get-Item
Get-Location
Get-Process
about_Providers
Steps to reproduce
Create a new markdown help file. In the Related Links section add an item that is just the name of a cmdlet:
# RELATED LINKS
Use-ACommandName
Run the New-ExternalHelp
command to convert the above help to MAML. Note you get this error:
Exception calling "NodeModelToMamlModel" with "1" argument(s): "254:532 'Use-ACommandName
'
Expect hyperlink, but got Add-Index"
At C:\Program Files\WindowsPowerShell\Modules\platyPS\0.5.0\platyPS.psm1:973 char:9
+ $maml = $t.NodeModelToMamlModel($model)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : HelpSchemaException
Expected behavior
I expect to be able to use just command names for items in the Related Links section.
Actual behavior
I can't use just command names for items in the Related Links section.
Environment data
v0.5.0