From 89ff8255bd9fd61073536134af0211bfd2594eb2 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Thu, 23 Oct 2025 13:33:38 -0700 Subject: [PATCH] open markdown links in new window/tab (#6229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Changes links in markdown snippets (What's New popup, node info sidebar) to open the link in a new tab/window rather than directly navigating and potentially losing unsaved work. https://github.com/user-attachments/assets/24331bba-e31a-484c-bc11-12cf61805c98 Fixes https://github.com/Comfy-Org/ComfyUI_frontend/issues/6223. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6229-open-markdown-links-in-new-window-tab-2956d73d365081edbb1efb21cd0e2ab2) by [Unito](https://www.unito.io) --------- Co-authored-by: Alexander Brown Co-authored-by: GitHub Action --- .../updates/components/WhatsNewPopup.vue | 8 +- src/utils/markdownRendererUtil.ts | 11 +- .../helpcenter/WhatsNewPopup.test.ts | 8 +- .../tests/utils/markdownRendererUtil.test.ts | 123 ++++++++++++++++++ 4 files changed, 138 insertions(+), 12 deletions(-) create mode 100644 tests-ui/tests/utils/markdownRendererUtil.test.ts diff --git a/src/platform/updates/components/WhatsNewPopup.vue b/src/platform/updates/components/WhatsNewPopup.vue index c4a898faf..f1a5060b5 100644 --- a/src/platform/updates/components/WhatsNewPopup.vue +++ b/src/platform/updates/components/WhatsNewPopup.vue @@ -64,11 +64,11 @@ ' + const html = renderMarkdownToHtml(markdown) + + expect(html).not.toContain('