From c486ae37d3f522bc1181b38113d7090d047cb4e2 Mon Sep 17 00:00:00 2001 From: David Rosa Date: Fri, 27 Oct 2023 16:20:44 -0700 Subject: [PATCH] help: Document option to paste URL to create a named link. - Adds a "Via paste" tab to document the new functionality. Fixes #26892. --- help/insert-a-link.md | 13 +++++++++++++ zerver/lib/markdown/tabbed_sections.py | 1 + 2 files changed, 14 insertions(+) diff --git a/help/insert-a-link.md b/help/insert-a-link.md index 12e3eba7bb..1509ac1b00 100644 --- a/help/insert-a-link.md +++ b/help/insert-a-link.md @@ -10,6 +10,19 @@ {start_tabs} +{tab|via-paste} + +{!start-composing.md!} + +1. Select the text you want to linkify. + +1. Paste a URL to turn the selected text into a named link. + +!!! keyboard_tip "" + + You can also use Ctrl + Shift + L + to insert link formatting. + {tab|via-markdown} {!start-composing.md!} diff --git a/zerver/lib/markdown/tabbed_sections.py b/zerver/lib/markdown/tabbed_sections.py index cfa8e4237d..8deef98d0e 100644 --- a/zerver/lib/markdown/tabbed_sections.py +++ b/zerver/lib/markdown/tabbed_sections.py @@ -98,6 +98,7 @@ TAB_SECTION_LABELS = { "user": "User", "bot": "Bot", "on-sign-up": "On sign-up", + "via-paste": "Via paste", "via-markdown": "Via Markdown", "via-compose-box-buttons": "Via compose box buttons", "stream-compose": "Compose to a stream",