Github:如何在README.md中嵌入一个要点? [英] Github: How to embed a gist into README.md?

查看:142
本文介绍了Github:如何在README.md中嵌入一个要点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



类似于:


$ b $是否可以将套件嵌入驻留在github库中的README.md文件中? b

 < code id =gist-3167145>< / code> 


解决方案

更新:我的答案适用于github页面,杰奇。我使用markdown脚本标记,然后由jekyll处理。



由于markdown支持html,因此可以简单地使用 <脚本> 标记嵌入要点。



只需复制



..并将其粘贴到您的降价文件中。



示例:复制下面的内容并粘贴在您的降价文件中。



< script src =https://gist.github.com/nisrulz/11c0d63428b108f10c83.js>< / script>



..这就是你将会得到的结果




Is it possible to embed gits into README.md file that resides in a github repo?

Something like:

<code id="gist-3167145"></code>

解决方案

Update : My answer works with github pages, built via jekyll. I use the script tags in markdown which is then processed by jekyll.

Since markdown supports html, one can simply use the <script> tag to embed gist.

Simply copy the embed url of the gist provided by github

..and paste it in you markdown file.

Example : Copy the below and paste in your markdown file.

<script src="https://gist.github.com/nisrulz/11c0d63428b108f10c83.js"></script>

..and this is what you will get

这篇关于Github:如何在README.md中嵌入一个要点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆