Name: github-gist-gutenberg-block
Owner: Pantheon
Description: Include GitHub Gists in your Gutenberg posts without the hassle of shortcodes
Created: 2018-01-25 22:20:26.0
Updated: 2018-04-28 09:43:56.0
Pushed: 2018-03-22 11:54:41.0
Homepage: https://pantheon.io/blog/how-convert-shortcode-gutenberg-block
Size: 21
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Contributors: getpantheon, danielbachhuber
Tags: github gist, gutenberg
Requires at least: 4.4
Tested up to: 4.9.2
Stable tag: 0.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Include GitHub Gists in your Gutenberg posts without the hassle of shortcodes.
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:
blocks/github-gist/index.js
. When the block is previewed in Gutenberg, custom code is used to generate the embed.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.
The Gist Block can be installed just like any other WordPress plugin!
wp.components
API included in Gutenberg 2.4.