כיצד להוסיף iframe לרשימה הלבנה מ-Kotlin playground?

סיכום מבוסס בינה מלאכותית

TheBestPessimist is trying to embed a Kotlin playground iframe (https://pl.kotl.in/xrwqnYnxC?theme=darcula) into a Discourse topic but initially faced issues. They shared the original playground code, the iframe URL, and its redirect target (https://play.kotlinlang.org/embed?short=xrwqnYnxC&theme=darcula), along with a screenshot of their failed attempt to whitelist it. awesomerobot noted that it worked on their dev instance and asked if there were console errors. Later, TheBestPessimist reported the iframe is now working, though they’re unsure why. They also asked if the iframe’s appearance can be improved — whether styling is controlled by the iframe itself or Discourse’s rendering. No specific solution for styling was provided, but the embedding issue appears resolved.

This is what i want to embed: Kotlin Playground: Edit, Run, Share Kotlin Code Online

This is the iframe url: <iframe src="https://pl.kotl.in/xrwqnYnxC?theme=darcula"></iframe>

The same iframe url just to see if embed works on meta:

And this is where the URL above redirects me: https://play.kotlinlang.org/embed?short=xrwqnYnxC&theme=darcula

This is what i tried to add, but it doesn’t seem to work:

I have tried adding one or the other of the 2 kotlin links. i have also tried adding both.

hmm strange, I’m able to get it to work on my dev instance

are there any errors in the console when you’re trying to view the topic with the iframe?

it seems to be working today

so idk what might have happened.

Second question: is there a way to make that box more beautiful? it this something from the iframe, or something from discourse?