soygeitoyt-lgtm 080f87f0f5 fix(description): render custom emoji attachments in comments and descriptions
YouTube's new commentEntityPayload format carries emojis as attachmentRuns
(startIndex/length into the plain text plus an image reference), which
parse_description() ignored so far - making every custom channel emoji
disappear from comments and video descriptions.

Merge attachmentRuns with the existing commandRuns handling (they share the
same UTF-16 coordinate space):

- Images hosted on /ggpht-proxiable domains (yt3.ggpht.com custom channel
  emojis) are rendered as <img class="channel-emoji"> tags, reusing the
  proxy and CSS class from the legacy comment renderer.
- Attachments pointing at www.youtube.com (standard unicode emojis rendered
  as images by YouTube) are skipped, keeping their original characters -
  they render fine natively without contacting YouTube's servers.

Fixes #5888
2026-08-22 03:40:55 -04:00
..