Linux 软件免费装
Banner图

Gist Block by Pantheon

开发者 getpantheon
danielbachhuber
更新时间 2018年3月22日 19:57
PHP版本: 4.4 及以上
WordPress版本: 4.9.2
版权: GPLv2 or later
版权网址: 版权信息

标签

gutenberg github gist

下载

0.1.0 0.1.1

详情介绍:

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:
  1. 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.
  2. Fallback HTML content is what's actually stored in the post content.
  3. 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.

安装:

The Gist Block can be installed just like any other WordPress plugin!

更新日志:

0.1.1 (Mar. 22nd, 2018) 0.1.0 (Feb. 5th, 2018)