Skip to content

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Jan 14, 2026

fixes microsoft/pxt-arcade#7200

despite what the linked issue says, this was not mac specific. it also reproes on windows

we configure our docs renderer to take images where the href starts with youtube: and replace them with iframes that contain the youtube embedded player. the recent marked changes, however, were causing our dom sanitizer to then remove those iframe embeds from the generated html (which makes sense, it probably should do that). this PR fixes that by changing our markdown renderer to just leave a div in the rendered HTML, and then hydrating the youtube video embed after the fact. this also fixes it for docs pages, which currently don't handle the youtube: syntax correctly on live

@riknoll riknoll requested a review from a team January 14, 2026 22:59
@riknoll riknoll enabled auto-merge (squash) January 15, 2026 18:20
Copy link
Contributor

@srietkerk srietkerk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@riknoll riknoll merged commit f6a0f27 into master Jan 15, 2026
20 checks passed
@riknoll riknoll deleted the dev/riknoll/arcade-fix-tutorial-youtube-embed branch January 15, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mac] Video not displayed in “See the Video” section on Mac platform

3 participants