-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PowerShell about_ help files do not display synopsis due to incompatible formatting #3268
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
Comments
Hmmm - so the space between the heading at the text is consistent with all headings. If this help is coming from a conversion from source markdown - maybe it is preserving the markdown proper syntax of having a blank line - which is not compatible with get-help. Maybe powershell 6 help parser should be adjusted instead of adjusting the md conversion process. |
The blank line after the synopsis is not the issue. This appears to be an issue with they way that PlatyPS converts the MD to TXT. The output from PlatyPS if formatted with specific "headers". Get-Help is expecting that format. Since we switched to pandoc for processing the About_ files the TXT files do not have the same "headers". |
This is also affecting PS7 |
This issue is being tracked in source repo. |
Most powershell core about_* help files are not formatted to support the built in extraction of a synopsis.
Given that the synopsis is the ONLY metadata that can be extracted from the about_ format (which sucks - see #8230 ), these files should be correctly formatted to maximize helpfulness of help using built in features.
Steps to reproduce
Expected behavior
Actual behavior
Get-Help parses only the first line of the SHORT DESCRIPTION into a synopsis.
Most of the about_* files in powershell core are formatted as (notice blank line after heading):
for the file synopsis to show up, they should be
The text was updated successfully, but these errors were encountered: