Closed
Description
Steps to reproduce
- Open Powershell Core
- Generate markdown for a module that has a valid example (like my snippet below)
<#
.SYNOPSIS
Gets the full path of the folder holding the Macrium backup files for this job.
.EXAMPLE
Get-MacriumReflectBackupDestination
#>
Expected behavior
Markdown example gets generated with markdown moniker powershell
.
Actual behavior
Code block is generated but without the powershell
moniker.
Probable cause
This might be caused by Get-Help producing different examples like shown below. The first line is produced inside "plain" Powershell, the second one inside Powershell Core.
PS C:\>Get-MacriumReflectBackupDestination
PS > Get-MacriumReflectBackupDestination
FWIW I've seen some code and comments passing by while reading up on this and I recall a checks/regex is done for the first variant only. Confirmation that this is indeed a bug would be highly appreciated.
Metadata
Metadata
Assignees
Labels
No labels