Title: [Plugin: Embed GitHub Gist] Gist height
Last modified: August 20, 2016

---

# [Plugin: Embed GitHub Gist] Gist height

 *  [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/)
 * I wanted to add a gist height for really long gists that would result in a scrollbar
   for the embed. Here’s the patch to achieve this for the current trunk using a
   height parameter to the shortcode: [https://gist.github.com/3200265](https://gist.github.com/3200265).
 * I haven’t tested it without json_decode, and it may not be fully compatible with
   strict HTML, but it does the job. It’d be cool if you added this functionality(
   perhaps rewritten) to core.
 * [http://wordpress.org/extend/plugins/embed-github-gist/](http://wordpress.org/extend/plugins/embed-github-gist/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [dflydev](https://wordpress.org/support/users/dflydev/)
 * (@dflydev)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928227)
 * Would you be interested in forking this project on GitHub and submitting this
   as a PR?
 * [https://github.com/dflydev/embed-github-gist](https://github.com/dflydev/embed-github-gist)
 *  Thread Starter [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928228)
 * [@dflydev](https://wordpress.org/support/users/dflydev/) I’m not sure that’s 
   the best way to do it, so I’ll just let you use the diff above if you want. Plus,
   it’d be great if you could make an option to have the long lines wrap while you’re
   at it, if it’s not too much trouble.
 * Also, it seems like the vertical scroll bar is not in the right place with my
   patch – you need to scroll all the way down to see the horizontal one if the 
   lines are too long.
 *  Thread Starter [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928229)
 * OK, fixed the vertical scrollbar and updated the gist.
 * Not really sure how to get text wrapping to work though. Check it out on this
   example: [http://www.androidpolice.com/2012/10/09/heres-whats-new-in-android-4-1-2-at-the-low-level-developer-commit-logs](http://www.androidpolice.com/2012/10/09/heres-whats-new-in-android-4-1-2-at-the-low-level-developer-commit-logs).
 *  Plugin Author [dflydev](https://wordpress.org/support/users/dflydev/)
 * (@dflydev)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928230)
 * I’m not sure how wise it would be to do anything with the text wrapping. Even
   if you visit the gist in its raw form at [https://gist.github.com/3861583](https://gist.github.com/3861583)
   you’ll see that there is no text wrapping.
 * Thanks for the updated gist. I assume that that blog is running your patched 
   version of this plugin?
 *  Thread Starter [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928231)
 * Correct, it’s running the latest version.
 * Well, wrapping would be nice, it’s really not very friendly not to wrap long 
   lines for narrow embeds. If there’s any way at all, it’d be great to at least
   try.
 *  Thread Starter [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928234)
 * Hi [@dflydev](https://wordpress.org/support/users/dflydev/),
 * I’ve updated the height code for the latest version of the plugin in trunk . 
   Can you please integrate [https://gist.github.com/3200265](https://gist.github.com/3200265)
   so that it stops breaking with updates?
 * Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Embed GitHub Gist] Gist height’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/embed-github-gist.svg)
 * [Embed GitHub Gist](https://wordpress.org/plugins/embed-github-gist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/embed-github-gist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/embed-github-gist/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-github-gist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-github-gist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-github-gist/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [archon810](https://wordpress.org/support/users/archon810/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-embed-github-gist-gist-height/#post-2928234)
 * Status: not resolved