From 5c05e45206d8715bbafb50a4d3f91492b341c280 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 12 Mar 2025 10:32:25 +0530 Subject: [PATCH] feat: use nocookie version of youtube & vimeo for help center embeds (#11061) This pull request includes changes to the `CustomMarkdownRenderer` class and its corresponding tests to support YouTube's "nocookie" [[ref](https://support.google.com/youtube/answer/171780?hl=en#zippy=%2Cturn-on-privacy-enhanced-mode)] URLs and adding the `dnt` param to Vimeo embed [[ref](https://help.vimeo.com/hc/en-us/articles/12426260232977-About-Player-parameters)]. ![CleanShot 2025-03-11 at 19 39 36@2x](https://github.com/user-attachments/assets/e7a3e9b1-35a6-4c8c-bdc2-005f773b3d04) --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- lib/custom_markdown_renderer.rb | 4 +-- spec/lib/custom_markdown_renderer_spec.rb | 42 ++++++++--------------- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/lib/custom_markdown_renderer.rb b/lib/custom_markdown_renderer.rb index dfd3ce700..16bb4e024 100644 --- a/lib/custom_markdown_renderer.rb +++ b/lib/custom_markdown_renderer.rb @@ -79,7 +79,7 @@ class CustomMarkdownRenderer < CommonMarker::HtmlRenderer %(