Gist Block Pantheon makes it possible to embed GitHub Gists in Gutenberg posts.
Simply add the. GitHub Gist. block paste URL to Gist and see it transform to grand preview..
Specifically recheck out implementation details.
Block UI is registered in blocks github-gist index.js.
When the block is previewed in Gutenberg custom code is used to generate the embed..
Fallback HTML content is what's actually includes in the post content..
render callback is used to transform the block to GitHub's Gist embed code...
How to Convert Shortcode to Gutenberg Block. for more detailed responses of the plugin..
Check out the service GitHub for any questions feedback suggestions or pull requests...
Browse the code recheck out SVN repository or subscribe to the development log RSS....
Read more