-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow non-links for related links items #164
Comments
@splatteredbits this is a function of the help system built into PowerShell. The first related link in MAML must be a valid URI. If the first link is not a URI the help system throws an error when it tries to parse MAML. This is to support the functionality of When converting from MAML to MD we updated the code to allow bad URIs to convert to MD to avoid throwing this error in MD generation. If you have populated the Metadata for online version (which populates the first related link item when converting to external help) like this: ---
online version: https://github.com/PowerShell/platyPS/blob/master/docs/Get-HelpPreview.md
--- and are still experiencing the issue, we can investigate. |
It's a variation of #140. I don't think platyPS should support a plain text in RELATED LINKS section. But it should support relative links and so on. @splatteredbits you should be able to use Take your example with
Not a plain text either: links with empty uri. |
Fixed in 8931129 |
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: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:
Run the
New-ExternalHelp
command to convert the above help to MAML. Note you get this error: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
The text was updated successfully, but these errors were encountered: