Gist Block by Pantheon
Include GitHub Gists in your Gutenberg posts without the hassle of shortcodes.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 2841 days ago
Is Gist Block by Pantheon abandoned?
Possibly abandoned (last update 2841 days ago).
Compatibility
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
The Gist Block by Pantheon makes it possible to embed GitHub Gists in your Gutenberg posts. Simply add the “GitHub Gist” block, paste the URL to your Gist, and see it transform to a wonderful preview.
Curious as to how blocks work? This is a great one to explore. Specifically, check out these 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 stored in the post content.
- A dynamic render callback is used to transform the block to GitHub’s standard Gist embed code.
Read “How to Convert a Shortcode to a Gutenberg Block” for a more detailed explanation of the plugin.
Something we can clarify? Check out the project on GitHub for any questions, feedback, suggestions, or pull requests.
Installation
The Gist Block can be installed just like any other WordPress plugin!
Frequently Asked Questions
Installation Instructions
The Gist Block can be installed just like any other WordPress plugin!
Review feed
Screenshots
Changelog
0.1.1 (Mar. 22nd, 2018)
- Uses new
wp.componentsAPI included in Gutenberg 2.4. - Removes textdomain because it’s not registered.
0.1.0 (Feb. 5th, 2018)
- Initial release.