Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Gistr

Описание

Gistr allows you to easily embed Gists from GitHub in your WordPress site. Simply enter the Gist ID in the Gistr Post Block and viola! Gistr was developed especially for the Block (Gutenberg) Editor experience in WordPress 5.0+ and will not work if you have disabled it.

Gistr allows you to easily:

*Embed Gist by pasting the Gist ID into the options box (that’s it!)
*Hide/show line numbers
*Highlight rows
*Show all or select line numbers
*Hide Gist footer
*Cache Gists

Gistr is a WordPress Plugin implementation of Gist Embed by Blair Vanderhoof.

Скриншоты

  • Example of an embedded Gist
  • Gistr Block in the block editor. Once selected the input area and options will appear
  • View of the Gistr Block when selected. You will paste the Gist ID in the input box as shown.
  • Available options when configuring Gistr

Установка

  1. Upload the plugin files to the /wp-content/plugins/gist directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress
  3. In the post or page editor, add a new block. You will find Gistr in the ‘Embed’ block section
  4. Paste the Gist ID into the input area of the block.
  5. You can configure the Gist settings in the options area on the right hand side.

Часто задаваемые вопросы

Where do I find the Gist ID?

The Gist ID is the numbers and letters after the username in the Gist URL. For example, if this is the Gist URL: https://gist.github.com/myusername/774c98e6e6f139091aedf6c18109c335
Then the Gist ID is all the characters after the /myusername/

Отзывы

14.07.2019
Well done - it works! So far the best plug in and I tried lots.. to embed gists. Please do support it in the future.
22.05.2019
I love this, thank you! I was looking for something like this, that didn't come bundled with a bunch of other blocks I didn't need. I love the ability to hide the bottom bar, and adjust line numbers / highlights. I used this together with some custom styling to get a nice dark-theme for my snippet embeds.
Посмотреть все 2 отзыва

Участники и разработчики

«Gistr» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Gistr» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

1.0

  • First stable release