Karl Stolley
b7b409002e
postprocess: Set up new loop for message embeds.
2025-09-26 16:53:20 -07:00
Karl Stolley
31c49a7258
postprocess: Process YouTube images in image loop.
2025-09-26 16:53:20 -07:00
Karl Stolley
c7a651da60
postprocess: Handle images all within a single loop.
2025-09-26 16:53:20 -07:00
Karl Stolley
2e40359dd6
postprocess: Move refactored upload processing to own loop.
2025-09-26 16:53:20 -07:00
Karl Stolley
f9b52d4df5
postprocess: Move download processing nearer to links.
2025-09-26 16:53:20 -07:00
Karl Stolley
716333c6be
postprocess: Move list-processing to the top.
...
This is the most simple loop, so sticking it at the top
keeps it from getting lost among the more complex
processing that follows.
2025-09-26 16:53:20 -07:00
Tim Abbott
0c04f5f101
postprocess_content: Simplify and clarify video logic.
2025-09-17 13:25:50 -07:00
Karl Stolley
a64276c58f
media: Replace legacy .message_inline_image class.
...
This introduces two new replacement classes, depending on
whether the inner content is an image or a video.
2025-09-17 13:25:50 -07:00
Karl Stolley
1b3ea708be
markdown: Don't double-process video elements.
2025-09-17 13:25:50 -07:00
Karl Stolley
cacd73fd8b
audio: Present audio player in wrapped element.
2025-08-28 15:20:11 -07:00
Karl Stolley
1bcc52c860
cleanup: Remove comments from abandoned approach.
2025-08-28 15:20:11 -07:00
Karl Stolley
05b8fea10f
audio_player: Postprocess audio for added structure, classes.
2025-08-06 10:45:31 -07:00
Karl Stolley
a82921f32c
markdown: Experiment with custom bullets, counters.
2025-05-12 18:08:28 -07:00
Karl Stolley
2ae2589494
thumbnails: Constrain thumbnails to 10em height only.
2025-05-06 13:16:00 -07:00
Karl Stolley
142d1958a0
url_previews: Post-process embed links for performant CSS.
2025-04-28 16:10:13 -07:00
Karl Stolley
ad75ab590a
thumbnails: Structure adjacent images into galleries.
2025-04-23 10:53:05 -07:00
Karl Stolley
72c89404f3
thumbnails: Audition darker borders on typical images.
2025-04-10 12:55:15 -07:00
Karl Stolley
356028729f
thumbnails: Handle dinky thumbnail images.
...
Fixes : #31502
2025-04-10 12:55:15 -07:00
Karl Stolley
d22c6318db
thumbnails: Add height and width attributes to images.
2025-04-10 12:55:15 -07:00
Karl Stolley
4e19e82f64
thumbnails: Reference media anchors, images, and video by class.
2025-04-10 12:55:15 -07:00
Anders Kaseorg
ff4337eee5
eslint: Fix @typescript-eslint/prefer-nullish-coalescing.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2025-04-09 15:46:56 -07:00
Karl Stolley
80dcd53b59
youtube: Request medium-quality preview images.
2025-03-05 13:59:58 -08:00
Tim Abbott
2c8d74735a
postprocess_content: Drop invalid inline image elements.
...
These shouldn't exist without bugs in the Markdown processor, but at
least some ancient messages in chat.zulip.org seem to have them.
2025-02-25 22:40:36 -08:00
Abel Abate
2e95012c90
postprocess: Fix animated images automatically playing on Firefox.
...
This commit fixes a bug where animated images automatically play on
Firefox because the image source didn't output the same URL across
different browsers. Currently, the image source is normalized to
ensure consistent URLs across different browsers.
Fixes #33248
Co-authored-by: Alex Vandiver <alexmv@zulip.com >
2025-02-18 22:08:00 -08:00
Karl Stolley
be5c81286c
rendered_markdown: Offset ordered lists by start and count.
...
Fixes #33424
2025-02-12 10:32:26 -08:00
Anders Kaseorg
ec3177c834
web: Add explicit extensions to imports.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-11-13 09:18:56 -08:00
Alex Vandiver
b8e4bdccd8
postprocess_content: Un-URI-escape filename in title.
...
The filename contains URI-escaped characters, which do not need to be
escaped for safety -- they only make the filename in the tooltip less
readable.
2024-08-29 13:29:33 -07:00
Alex Vandiver
2f2803431d
thumbnails: Mark images as lazy-loaded.
...
Setting `loading=lazy`[^1] tells the browser to defer loading the
image until it is near enough to the viewport to merit loading. This
can save a great deal of image fetching.
[^1]: https://html.spec.whatwg.org/multipage/urls-and-fetching.html#lazy-loading-attributes
2024-08-16 14:33:25 -07:00
Anders Kaseorg
94fe3f6194
rendered_markdown: Move thumbnail rewriting to postprocess_content.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-07-23 13:26:37 -07:00
Anders Kaseorg
edf34ada63
util: Rename clean_user_content_links to postprocess_content.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com >
2024-07-23 13:26:37 -07:00