Markdown Formatting Issues
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- powershell
- Domain
- documentation
Research direction
Start by reproducing the three scenarios with New-MarkdownCommandHelp using the comment-based help examples in the issue, then inspect the generated Markdown for RELATED LINKS and trailing spaces. Done means an empty .LINK does not create an empty bullet, the missing .LINK case has the expected placeholder without extra trailing space, and populated .NOTES adds no extra space.
Written by the indexing model from the issue text.
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
Issue occurs if the comment-based help, does not include a .LINK section.
Comment-based Help to produce test scenarios.
Scenario 1 - .LINK present but left empty
function Test-Cmdlet {
<#
.SYNOPSIS
Testing of comment-based help.
.DESCRIPTION
This is utilized to test Microsoft.PowerShell.PlatyPS.
.PARAMETER Test
A placehoder parameter for testing documentation output.
.EXAMPLE
Test-Cmdlet -Name "MyName"
.EXAMPLE
This is example text before the command.
Test-Cmdlet -Name 'MyName'
.INPUTS
.OUTPUTS
.NOTES
.LINK
#>
param (
[Parameter(Mandatory=$false, HelpMessage="A parameter for platyPS testing purposes.")]
[string]$Name
)
Write-Host 'This is a test.'
}
Scenario 2 - .LINK not present
function Test-Cmdlet {
<#
.SYNOPSIS
Testing of comment-based help.
.DESCRIPTION
This is utilized to test Microsoft.PowerShell.PlatyPS.
.PARAMETER Test
A placehoder parameter for testing documentation output.
.EXAMPLE
Test-Cmdlet -Name "MyName"
.EXAMPLE
This is example text before the command.
Test-Cmdlet -Name 'MyName'
.INPUTS
.OUTPUTS
.NOTES
#>
param (
[Parameter(Mandatory=$false, HelpMessage="A parameter for platyPS testing purposes.")]
[string]$Name
)
Write-Host 'This is a test.'
}
Scenario 3 - .NOTE has information
function Test-Cmdlet {
<#
.SYNOPSIS
Testing of comment-based help.
.DESCRIPTION
This is utilized to test Microsoft.PowerShell.PlatyPS.
.PARAMETER Test
A placehoder parameter for testing documentation output.
.EXAMPLE
Test-Cmdlet -Name "MyName"
.EXAMPLE
This is the example text before the command.
Test-Cmdlet -Name 'MyName'
.INPUTS
.OUTPUTS
.NOTES
This is a sample note.
.LINK
#>
param (
[Parameter(Mandatory=$false, HelpMessage="A parameter for platyPS testing purposes.")]
[string]$Name
)
Write-Host 'This is a test.'
}
$newMarkdownCommandHelpSplat = @{
ModuleInfo = Get-Module MySample
OutputFolder = '.'
HelpVersion = '0.0.1'
WithModulePage = $true
}
New-MarkdownCommandHelp @newMarkdownCommandHelpSplat
Expected behavior
Scenario 1 Expected:
Scenario 2 Expected:
Scenario 3 Expected:
Actual behavior
Scenario 1 Result - An empty bullet point is produced in RELATED LINKS
Scenario 2 Result - The RELATED LINKS placeholder is created as expected, but an extra space is added at end of file
Scenario 3 Result - When NOTES has a value, an extra space is added
Error details
Environment data
Name Value
---- -----
PSVersion 7.4.12
PSEdition Core
GitCommitId 7.4.12
OS Microsoft Windows 10.0.26100
Platform Win32NT
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
- Dominant language
- C#
- Stars
- 870
- Forks
- 166
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PowerShell/platyPS
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
PowerShell/platyPS#868 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PowerShell/platyPS#857 ·
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
PowerShell/platyPS#867 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
PowerShell/platyPS#863 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
PowerShell/platyPS#862 ·
All issues in PowerShell/platyPS
Similar issues
-
Backend enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
UI: money shows the minus sign next to the number, not before the currency (IL -3.0m, not -IL 3.0m)Openarea: sim area: unity enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eyalgolan/statecraft-israel#1107 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
dimitar-radenkov/Pointframe#271 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
qew21/Genshin-Subtitles#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
HoffmanEngineering/3d-print-log-api#274 ·
Maintainers usually reply within 1 day