Embedding a Gist file

Hi there, just digging the archives and trying to understand the platform.

If I were to do this in WordPress, I would create a shortcode and the user would add the following when writing a post: [gist id="GIST_ID"].
Then I would process and render that on the HTML as

<script src="https://gist.github.com/username/GIST_ID.js"></script>

I understand that Sitecake editor is only for content, but how advanced can one get client-side or server-side? Any example on how to encapsulate things with PHP?

Or let’s say an H1 element text content started with gist- + GIST_ID, I guess I could detect that and serve the embed (?)

I found some interesting JS solutions:

Hi,

did you try your example
<script src="https://gist.github.com/username/GIST_ID.js"></script>
through HTML component. It won’t render on focus out, but you should be able to see it after refresh and on published page.