-
Notifications
You must be signed in to change notification settings - Fork 156
Powershell moniker not added when using Powershell Core #475
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
OH, I notice this applies to both Powershell versions as well as the markdown generated for PlatyPS. Am I expecting something unsupported here? |
This is dupe of #294 that was here for a really long time :) |
yes! |
Awesome. Unsure if I will be able to pull this off myself but this perhaps this green light can motivate other contributors s as well. Much appreciated 💯 |
Steps to reproduce
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.
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.
The text was updated successfully, but these errors were encountered: