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.

message_formatting: Expand the tips list with additional suggestions.

Satyam Bansal0c656731ac30
diff --git a/web/src/info_overlay.js b/web/src/info_overlay.js
index f7982904206..a5dcd8518ba 100644
--- a/web/src/info_overlay.js
+++ b/web/src/info_overlay.js
@@ -44,6 +44,11 @@ const markdown_help_rows = [
output_html: "<p><a>#stream name</a></p>",
effect_html: "(links to a stream)",
},
+ {
+ markdown: "#**stream name>topic name**",
+ output_html: "<p><a>#stream name > topic name</a></p>",
+ effect_html: "(links to topic)",
+ },
{
markdown: "@**Joe Smith**",
output_html: '<p><span class="user-mention">@Joe Smith</span></p>',
@@ -54,6 +59,11 @@ const markdown_help_rows = [
output_html: '<p><span class="user-mention">Joe Smith</span></p>',
effect_html: "(links to profile but doesn't notify Joe Smith)",
},
+ {
+ markdown: "@*support team*",
+ output_html: '<p><span class="user-group-mention">@support team</span></p>',
+ effect_html: "(notifies <b>support team</b> group)",
+ },
{
markdown: "@**all**",
effect_html: "(notifies all recipients)",
@@ -120,6 +130,11 @@ def zulip():
markdown: "/me is busy working",
output_html: '<p><span class="sender_name-in-status">Iago</span> is busy working</p>',
},
+ {
+ markdown: "<time:2023-05-28T13:30:00+05:30>",
+ output_html:
+ '<p><time datetime="2023-05-28T08:00:00Z"><i class="fa fa-clock-o"></i>Sun, May 28, 2023, 1:30 PM</time></p>',
+ },
{
markdown: `/poll What did you drink this morning?
Milk
@@ -150,6 +165,40 @@ Coffee`,
</li>
</ul>
</div>
+`,
+ },
+ {
+ markdown: "/todo",
+ output_html: `\
+<div class="message_content rendered_markdown">
+ <div class="widget-content">
+ <div class="todo-widget">
+ <h4>Task list</h4>
+ <ul class="todo-widget new-style">
+ <li>
+ <label class="checkbox">
+ <div>
+ <input type="checkbox" class="task">
+ <span></span>
+ </div>
+ <div>
+ <strong>Add tea</strong> - 2 tbsp
+ </div>
+ </label>
+ </li>
+ <li>
+ <label class="checkbox">
+ <div>
+ <input type="checkbox" class="task" checked="checked">
+ <span></span>
+ </div>
+ <strike><em><strong>Add Water</strong> - 100 ml</em></strike>
+ </label>
+ </li>
+ </ul>
+ </div>
+ </div>
+</div>
`,
},
{