zulip/static/styles
Rohitt Vashishtha 912e372c4e markdown: Remove !avatar() and !gravatar() syntax.
This particular commit has been a long time coming. For reference,
!avatar(email) was an undocumented syntax that simply rendered an
inline 50px avatar for a user in a message, essentially allowing
you to create a user pill like:

`!avatar(alice@example.com) Alice: hey!`

---

Reimplementation

If we decide to reimplement this or a similar feature in the future,
we could use something like `<avatar:userid>` syntax which is more
in line with creating links in markdown. Even then, it would not be
a good idea to add this instead of supporting inline images directly.

Since any usecases of such a syntax are in automation, we do not need
to make it userfriendly and something like the following is a better
implementation that doesn't need a custom syntax:

`![avatar for Alice](/avatar/1234?s=50) Alice: hey!`

---

History

We initially added this syntax back in 2012 and it was 'deprecated'
from the get go. Here's what the original commit had to say about
the new syntax:

> We'll use this internally for the commit bot.  We might eventually
> disable it for external users.

We eventually did start using this for our github integrations in 2013
but since then, those integrations have been neglected in favor of
our GitHub webhooks which do not use this syntax.

When we copied `!gravatar` to add the `!avatar` syntax, we also noted
that we want to deprecate the `!gravatar` syntax entirely - in 2013!

Since then, we haven't advertised either of these syntaxes anywhere
in our docs, and the only two places where this syntax remains is
our game bots that could easily do without these, and the git commit
integration that we have deprecated anyway.

We do not have any evidence of someone asking about this syntax on
chat.zulip.org when developing an integration and rightfully so- only
the people who work on Zulip (and specifically, markdown) are likely
to stumble upon it and try it out.

This is also the only peice of code due to which we had to look up
emails -> userid mapping in our backend markdown. By removing this,
we entirely remove the backend markdown's dependency on user emails
to render messages.

---

Relevant commits:

- Oct 2012, Initial commit        c31462c278
- Nov 2013, Update commit bot     968c393826
- Nov 2013, Add avatar syntax     761c0a0266
- Sep 2017, Avoid email use       c3032a7fe8
- Apr 2019, Remove from webhook   674fcfcce1
2020-07-07 10:39:44 -07:00
..
portico billing: Add option to request a sponsorship in /upgrade. 2020-07-01 16:45:38 -07:00
alerts.scss bankruptcy: Migrate from modal view to top-of-page panel. 2020-03-31 15:30:37 -07:00
app_components.scss msg_edit_form: Show checkboxes in separate lines if present. 2020-07-06 12:38:58 -07:00
components.scss settings: Fix modal out of screen on mobile. 2020-07-02 13:47:26 -07:00
compose.scss stream_header_colorblock: Create resuable css class. 2020-06-13 15:38:40 -07:00
drafts.scss styles: Replace Sass with PostCSS. 2019-08-29 16:35:51 -07:00
hotspots.scss hotspots: Animate more tastefully. 2020-02-25 14:04:11 -08:00
image_upload_widget.scss settings CSS: Remove unwanted CSS in `settings.scss`. 2020-07-03 17:32:28 -07:00
informational-overlays.scss styles: Remove most vendor-prefixed CSS attributes. 2019-08-30 14:51:52 -07:00
input_pill.scss stream settings: Add pills in add subscribers input. 2020-06-02 15:32:26 -07:00
left-sidebar.scss recent_topics: Move launch button to top left sidebar. 2020-06-29 22:21:23 -07:00
lightbox.scss styles: Remove most vendor-prefixed CSS attributes. 2019-08-30 14:51:52 -07:00
message_edit_history.scss edit_history: Highlight topic edit diffs by using correct CSS selector. 2020-06-07 13:57:28 -07:00
night_mode.scss recent_topics: Show a line below the focused element. 2020-06-24 15:37:46 -07:00
popovers.scss user-profile: Change color of `name` field. 2020-06-20 23:32:49 -07:00
pygments.scss css: Move night theme pygments CSS to night_mode.scss. 2020-06-24 12:35:02 -07:00
reactions.scss styles: Remove most vendor-prefixed CSS attributes. 2019-08-30 14:51:52 -07:00
recent_topics.scss recent_topics: Show a line below the focused element. 2020-06-24 15:37:46 -07:00
rendered_markdown.scss markdown: Remove !avatar() and !gravatar() syntax. 2020-07-07 10:39:44 -07:00
right-sidebar.scss sidebars: Replace chevron with ellipsis-v icon from the sidebars. 2020-06-14 20:57:43 -07:00
settings.scss settings CSS: Remove unwanted CSS in `settings.scss`. 2020-07-03 17:32:28 -07:00
subscriptions.scss settings: Fix media-query edge case. 2020-06-25 11:08:40 -07:00
typing_notifications.scss styles: Move media queries into the files they override. 2019-10-28 15:39:17 -07:00
user_circles.scss styles: Remove most vendor-prefixed CSS attributes. 2019-08-30 14:51:52 -07:00
user_status.scss styles: Remove stray semicolon from input.user_status block. 2019-09-02 21:45:43 -07:00
widgets.scss todo_list: Add task description and index numbers. 2020-03-12 08:02:06 -04:00
zulip.scss msg_edit_form: Show checkboxes in separate lines if present. 2020-07-06 12:38:58 -07:00