Runnable embed

We would like to be able to embed runnable embeds like this one. supports embedding and documents this here:

But since embed uses an iframe, Discourse seems to suppress it. Is there a way we could somehow whitelist this so people could include runnable code snippets in their posts?

1 Like

We recommend codepen instead, which should already work.

We’re using CodePen heavily elsewhere within Free Code Camp’s community, but it only works for JavaScript (and doesn’t have a REPL). works for a wide variety of programming languages. How can we get embeds to work?

You would either need to make a plugin for it, or send through a PR to the onebox gem to optionally allow this embedding (default off)


OK - thanks for clarifying. I will reach out to and see if they can add themselves to OneBox.

1 Like