mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
help_menu: Fix help_menu message formatting overlay not opening.
This commit fixes the behaviour of message formatting overlay in help menu not opening due to assertion error in rendered markdown after changes from #28418.
This commit is contained in:
committed by
Tim Abbott
parent
8ab0296a6e
commit
8559032d3a
@@ -73,7 +73,17 @@ const markdown_help_rows = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
markdown: "@*support team*",
|
markdown: "@*support team*",
|
||||||
output_html: '<p><span class="user-group-mention">@support team</span></p>',
|
// Since there are no mentionable user groups that we can
|
||||||
|
// assume exist, we use a fake data-user-group-id of 0 in
|
||||||
|
// order to avoid upsetting the rendered_markdown.ts
|
||||||
|
// validation logic for user group elements.
|
||||||
|
//
|
||||||
|
// Similar hackery is not required for user mentions as very
|
||||||
|
// old mentions do not have data-user-id, so compatibility
|
||||||
|
// code for that case works ... but it might be better to just
|
||||||
|
// user your own name/user ID anyway.
|
||||||
|
output_html:
|
||||||
|
'<p><span class="user-group-mention" data-user-group-id="0">@support team</span></p>',
|
||||||
effect_html: "(notifies <b>support team</b> group)",
|
effect_html: "(notifies <b>support team</b> group)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user