Gist.GitHubのソースを記事に挿入するためのプラグインを作りました。
[url2link url="http://wordpress.org/extend/plugins/oembed-gist/" summary="Embed your source from gist into WordPress easily. You simply paste URL of your Gist."]
このプラグインを使うと幸せになれる理由
- GistのURLをコピペするだけでハイライトされたソースが記事上に表示されます。
- Gistで提供される<script>をコピペすると公開時に<p>で囲まれてしまいますが、このプラグインを使用すれば大丈夫です。
更新情報
- 2011年08月19日
- oEmbed Gist 1.1.0
- 2011年04月28日
- Gist上のソースを超簡単にWordPressに表示するプラグイン


Hi. Thanks for creating this plugin, I added support for NOSCRIPT tags if you’d like to merge this back into your version: https://gist.github.com/1153501
HI Alex.
I was merge your patch.
Thanks!
ピンバック: 最近の WordPress 関係の話題 : dogmap.jp
Gistの特定のリビジョンの貼り付けに対応できないでしょうか。
パッと見ですがapiが対応してないようなので無理っぽいです。^^
返信ありがとうございます。
現状では無理と言うことですね。了解しました。
ピンバック: Embed a Github Gist in WordPress Posts/Pages | James Collins
Is it possible to embed a single file from a multi-file gist? Github offers embedding single files by appending ?file=filename.ext to your js src path. Maybe this is a good feature to consider for the future possible using shorttags in conjunction with oEmbed.