Markdown Formatting Issues
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- powershell
- Ambito
- documentation
Direzione di ricerca
Inizia riproducendo i tre scenari con New-MarkdownCommandHelp usando gli esempi di guida basata sui commenti nell’issue, quindi controlla il Markdown generato per verificare la presenza di RELATED LINKS e di spazi finali. Il lavoro è completato quando un .LINK vuoto non crea un punto elenco vuoto, il caso senza .LINK contiene il segnaposto previsto senza spazio finale aggiuntivo e un .NOTES valorizzato non aggiunge spazio aggiuntivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 870
- Fork
- 166
- Merge medio
- 21h 17m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/platyPS
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PowerShell/platyPS#857 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
PowerShell/platyPS#863 ·
-
Export-MamlCommandHelp: a module file in the batch aborts the whole export and writes nothingAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
PowerShell/platyPS#862 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
PowerShell/platyPS#861 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
PowerShell/platyPS#860 · 1 commento ·
Tutte le issue di PowerShell/platyPS
Issue simili
-
area:jobads-cv BE mvp P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
klasolsson81/jobbliggaren#2099 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
0 - Backlog Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
BrighterCommand/Brighter#4581 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Esri/calcite-dotnet-toolkit#30 · 1 reazione ·
-
kind:docs simplification size:S status:todo
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
elsa-workflows/elsa-foundation#2604 ·
I maintainer di solito rispondono entro 1 giorno