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 |