How do I embed a single file from a GitHub gist with the new gist interface?

前端 未结 4 2004
我寻月下人不归
我寻月下人不归 2020-12-22 20:45

The new GitHub Gist interface has one embed snippet for the entire gist which embeds all files in the gist. The old interface had embed code for each file in the gist. Anyon

4条回答
  •  感动是毒
    2020-12-22 21:33

    Just for other people reference that might be looking into this.

    If you are using Wordpress you may achieve this with the plugin oEmbed-gist and shortcode style:

    [gist id="your-gist-id-here" file="your-file-name.js"].

提交回复
热议问题