mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
Transforming valid stream/topic urls to the #**stream>topic** syntax. - A valid url contains a stream and optionally a topic but nothing else, and in that order. It must belong to the same origin as the Zulip server. The stream id present in the pasted url should correspond to an actual stream in the current server. - `near` links are not transformed. - Use-mention distinction is respected by not transforming a valid url if pasted using `Ctrl+Shift+V`. - No transformation occurs inside a code block. - On pressing `Ctrl+Z` after pasting, the actual pasted link is restored. - No transformation occurs if the url is pasted over an existing url in a markdown link syntax. - No transformation occurs if the stream or topic name contained in the pasted url is known to produce broken stream/topic syntax links (as per #30071). Fixes #29136
22 KiB
22 KiB