Add support to `$PSStyle` for strikethrough and hyperlinks #14461
+50
−0
Conversation
src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs
Outdated
Show resolved
Hide resolved
bc08092
into
PowerShell:master
32 checks passed
32 checks passed
PowerShell-CI-linux (CodeCoverage and Test Packages CodeCoverage and Test Packages)
CodeCoverage and Test Packages CodeCoverage and Test Packages succeeded
Details
PowerShell-CI-linux (Test for Linux Linux Test - ElevatedPesterTests - CI)
Test for Linux Linux Test - ElevatedPesterTests - CI succeeded
Details
PowerShell-CI-linux (Test for Linux Linux Test - ElevatedPesterTests - Others)
Test for Linux Linux Test - ElevatedPesterTests - Others succeeded
Details
PowerShell-CI-linux (Test for Linux Linux Test - UnelevatedPesterTests - CI)
Test for Linux Linux Test - UnelevatedPesterTests - CI succeeded
Details
PowerShell-CI-linux (Test for Linux Linux Test - UnelevatedPesterTests - Others)
Test for Linux Linux Test - UnelevatedPesterTests - Others succeeded
Details
PowerShell-CI-linux (Test for Linux Verify xUnit Results)
Test for Linux Verify xUnit Results succeeded
Details
PowerShell-CI-macos (CodeCoverage and Test Packages CodeCoverage and Test Packages)
CodeCoverage and Test Packages CodeCoverage and Test Packages succeeded
Details
PowerShell-CI-macos (Test for macOS Verify xUnit Results)
Test for macOS Verify xUnit Results succeeded
Details
PowerShell-CI-macos (Test for macOS mac Test - ElevatedPesterTests - CI)
Test for macOS mac Test - ElevatedPesterTests - CI succeeded
Details
PowerShell-CI-macos (Test for macOS mac Test - ElevatedPesterTests - Others)
Test for macOS mac Test - ElevatedPesterTests - Others succeeded
Details
PowerShell-CI-macos (Test for macOS mac Test - UnelevatedPesterTests - CI)
Test for macOS mac Test - UnelevatedPesterTests - CI succeeded
Details
PowerShell-CI-macos (Test for macOS mac Test - UnelevatedPesterTests - Others)
Test for macOS mac Test - UnelevatedPesterTests - Others succeeded
Details
PowerShell-CI-static-analysis (Markdown and Common Tests)
Markdown and Common Tests succeeded
Details
PowerShell-CI-windows (Build for Windows Windows Build)
Build for Windows Windows Build succeeded
Details
PowerShell-CI-windows (Packaging for Windows Windows Packaging)
Packaging for Windows Windows Packaging succeeded
Details
PowerShell-CI-windows (Test for Windows Verify xUnit Results)
Test for Windows Verify xUnit Results succeeded
Details
PowerShell-CI-windows (Test for Windows Windows Test - ElevatedPesterTests - CI)
Test for Windows Windows Test - ElevatedPesterTests - CI succeeded
Details
PowerShell-CI-windows (Test for Windows Windows Test - ElevatedPesterTests - Others)
Test for Windows Windows Test - ElevatedPesterTests - Others succeeded
Details
PowerShell-CI-windows (Test for Windows Windows Test - UnelevatedPesterTests - CI)
Test for Windows Windows Test - UnelevatedPesterTests - CI succeeded
Details
PowerShell-CI-windows (Test for Windows Windows Test - UnelevatedPesterTests - Others)
Test for Windows Windows Test - UnelevatedPesterTests - Others succeeded
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


PR Summary
Strikethrough was missed in the initial implementation. Hyperlinks are getting more broadly supported so that should be added.
Also added missing tests for FromRGB() method.
PR Context
Fix #14459
Fix #14460
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.