You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
RokeJulianLockhart
changed the title
Either output a NewLine before output (in addition to after) or don't output one.
Either output a NewLine *before* output (in addition to after) or *don't* output one.
Apr 13, 2024
Summary of the new feature / enhancement
Like Out-String should not append a trailing newline PowerShell#14444 (comment) explains,
Show-Markdown
appears to output an unnecessary[Environment]::NewLine
after invocation, which makes it difficult to read (because it doesn't even use one before the output too). https://github.com/MicrosoftDocs/PowerShell-Docs/blob/6ff8e52c11aabb6ea5724a6bd2952adfb6f2df12/reference/7.5/Microsoft.PowerShell.Utility/Show-Markdown.md#syntax doesn't list a way to disable this.Proposed technical implementation details (optional)
Don't emit a
[Environment]::NewLine
prepended to the output, or at the least, prepend one.Additional Information
Reported here due to https://github.com/PowerShell/MarkdownRender/blob/d26903f1ba6efda8912662794977b4b718b5f68e/README.md?plain=1#L4:~:text=the%20component%20is%20used%20by%20%60show-markdown%60.
I've tested this on:
The text was updated successfully, but these errors were encountered: