Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api_docs: Improve topic-permalink docs in `/api/message-formatting`.

Prakhar Pratyush3b279d38a070
diff --git a/api_docs/message-formatting.md b/api_docs/message-formatting.md
index eedd5d08be5..bbafbd9fd68 100644
--- a/api_docs/message-formatting.md
+++ b/api_docs/message-formatting.md
@@ -42,19 +42,19 @@ Sample HTML formats are as follows:
#announce > Zulip updates
</a>
-<!-- Syntax: #**announce>Zulip updates@214** -->
-<a class="message-link"
- href="/#narrow/channel/9-announce/topic/Zulip.20updates/near/214">
- #announce &gt; Zulip updates @ 💬
-</a>
-
<!-- Syntax: #**announce>Zulip updates**
- Generated only if topic is empty or the link was rendered before
- Zulip 10.0 (feature level 347) -->
+ Generated only if topic had no messages or the link was rendered
+ before Zulip 10.0 (feature level 347) -->
<a class="stream-topic" data-stream-id="9"
href="/#narrow/channel/9-announce/topic/Zulip.20updates">
#announce &gt; Zulip updates
</a>
+
+<!-- Syntax: #**announce>Zulip updates@214** -->
+<a class="message-link"
+ href="/#narrow/channel/9-announce/topic/Zulip.20updates/near/214">
+ #announce &gt; Zulip updates @ 💬
+</a>
```
The `near` and `with` operators are documented in more detail in the
@@ -86,19 +86,19 @@ are as follows:
#announce &gt; <em>general chat</em>
</a>
-<!-- Syntax: #**announce>@214** -->
-<a class="message-link"
- href="/#narrow/channel/9-announce/topic//near/214">
- #announce &gt; <em>general chat</em> @ 💬
-</a>
-
<!-- Syntax: #**announce>**
- Generated only if topic is empty or the link was rendered before
- Zulip 10.0 (feature level 347) -->
+ Generated only if topic had no messages or the link was rendered
+ before Zulip 10.0 (feature level 347) -->
<a class="stream-topic" data-stream-id="9"
href="/#narrow/channel/9-announce/topic/">
#announce &gt; <em>general chat</em>
</a>
+
+<!-- Syntax: #**announce>@214** -->
+<a class="message-link"
+ href="/#narrow/channel/9-announce/topic//near/214">
+ #announce &gt; <em>general chat</em> @ 💬
+</a>
```
**Changes**: Before Zulip 10.0 (feature level 347), the `with` field