From 113639a66cf62de4c1be1545040805feaf61e102 Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Mon, 19 Jan 2026 01:54:31 +0100 Subject: [PATCH] Upgrade MarkdownTextBlock (#44793) ## Summary of the Pull Request This PR: - upgrades `CommunityToolkit.WinUI.Labs.MarkdownTextBlock` to version `0.1.260116-build.2514`. This update includes a bunch of improvements for markdown rendering in its default config, and fixes a couple of bug with regards to rendering large images getting clipped when resizing the window. - replaces an incorrect image in the `Command Palette Sample Page` extension for the markdown + images sample. Before vs after: image image ## PR Checklist - [ ] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- Directory.Packages.props | 2 +- .../Pages/SampleMarkdownImagesPage.cs | 8 ++++---- .../ext/SamplePagesExtension/Pages/SampleMarkdownPage.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 1e23b1821c..6b75c4159a 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -26,7 +26,7 @@ - + diff --git a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs index 3c8702a51d..a783b6cb91 100644 --- a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs +++ b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage.cs @@ -69,14 +69,14 @@ internal sealed partial class SampleMarkdownImagesPage : ContentPage ### Web URL ```xml - ![painting](https://i.imgur.com/93XJSNh.png) + ![painting](https://raw.githubusercontent.com/microsoft/PowerToys/refs/heads/main/doc/images/overview/Original/AdvancedPaste.png) ``` - ![painting](https://i.imgur.com/93XJSNh.png) + ![painting](https://raw.githubusercontent.com/microsoft/PowerToys/refs/heads/main/doc/images/overview/Original/AdvancedPaste.png) ```xml - ![painting](https://i.imgur.com/93XJSNh.png?--x-cmdpal-fit=fit) + ![painting](https://raw.githubusercontent.com/microsoft/PowerToys/refs/heads/main/doc/images/overview/Original/AdvancedPaste.png?--x-cmdpal-fit=fit) ``` - ![painting](https://i.imgur.com/93XJSNh.png?--x-cmdpal-fit=fit) + ![painting](https://raw.githubusercontent.com/microsoft/PowerToys/refs/heads/main/doc/images/overview/Original/AdvancedPaste.png?--x-cmdpal-fit=fit) ### File URL (PNG): ```xml diff --git a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownPage.cs b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownPage.cs index 0fc07d71b9..3ae7d09c85 100644 --- a/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownPage.cs +++ b/src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownPage.cs @@ -81,7 +81,7 @@ Result: Result: -![painting](https://i.imgur.com/93XJSNh.png) +![painting](https://raw.githubusercontent.com/microsoft/PowerToys/refs/heads/main/doc/images/overview/Original/AdvancedPaste.png) ### Links