Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api_docs: Document new message-link Markdown syntax.
Tim Abbott77064a17260c
diff --git a/api_docs/changelog.md b/api_docs/changelog.mdindex d09f7c47c75..7c72e426f55 100644--- a/api_docs/changelog.md+++ b/api_docs/changelog.md@@ -20,6 +20,12 @@ format used by the Zulip server that they are interacting with.## Changes in Zulip 10.0+**Feature level 319**++* [Markdown message+ formatting](/api/message-formatting#links-to-channels-topics-and-messages): Added+ new `message-link` format for special direct links to messages.+**Feature level 318*** [`POST /register`](/api/register-queue): Updateddiff --git a/api_docs/message-formatting.md b/api_docs/message-formatting.mdindex 2f0cbad79e5..bb5290435e0 100644--- a/api_docs/message-formatting.md+++ b/api_docs/message-formatting.md@@ -23,6 +23,42 @@ for syntax highlighting. This field is used in thementions][help-global-time] to supported Markdown message formattingfeatures.+## Links to channels, topics, and messages++Zulip's markup supports special readable Markdown syntax for [linking+to channels, topics, and messages](/help/link-to-a-message-or-conversation).++Sample HTML formats are as follows:+``` html+<!-- Syntax: #**announce** -->+<a class="stream" data-stream-id="9"+ href="/#narrow/channel/9-announce">+ #announce+</a>++<!-- Syntax: #**announce>Zulip updates** -->+<a class="stream-topic" data-stream-id="9"+ href="/#narrow/channel/9-announce/topic/Zulip.20updates">+ #announce > Zulip updates+</a>++<!-- Syntax: #**announce>Zulip updates@214** -->+<a class="message-link"+ href="/#narrow/channel/9-announce/topic/Zulip.20updates/near/214">+ #announce > Zulip updates @ 💬+</a>+```++The older stream/topic elements include a `data-stream-id`, which+historically was used in order to display the current channel name if+the channel had been renamed. That field is **deprecated**, because+displaying an updated value for the most common forms of this syntax+requires parsing the URL to get the topic to use anyway.++**Changes**: In Zulip 10.0 (feature level 319), added Markdown syntax+for linking to a specific message in a conversation. Declared the+`data-stream-id` field to be deprecated as detailed above.+## Image previewsWhen a Zulip message is sent linking to an uploaded image, Zulip willdiff --git a/version.py b/version.pyindex 7825a2ee4b6..185898b3796 100644--- a/version.py+++ b/version.py@@ -34,7 +34,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"# new level means in api_docs/changelog.md, as well as "**Changes**"# entries in the endpoint's documentation in `zulip.yaml`.-API_FEATURE_LEVEL = 318 # Last bumped for `WebhookConfigOption` configuration update in realm_incoming_webhook_bots.+API_FEATURE_LEVEL = 319 # Last bumped for message-link class# Bump the minor PROVISION_VERSION to indicate that folks should provision# only when going from an old version of the code to a newer version. Bump