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

前端 未结 4 1985
我寻月下人不归
我寻月下人不归 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:23

    Take the gist URL from the left-hand side and after the .js add a query string like ?file=myFile.blah, e.g.

    
    

提交回复
热议问题