如何在GitHub wiki中创建某种内容表格? [英] How do I create some kind of table of content in GitHub wiki?

查看:921
本文介绍了如何在GitHub wiki中创建某种内容表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你看这里: http://en.wikipedia.org/wiki/Stack_Overflow

您会注意到有一点内容部分,如果您点击其中一个链接,它会将您发送到页面上的特定部分。

You'll notice there's a little "Content" section, if you click on one of the links, it will send you to a specific section on the page.

如何在GitHub wiki中执行此操作?使用Markdown或其他什么方法?

How do I do this in GitHub wiki? With Markdown or whatever they use?

推荐答案

它很好地展示在Markdown Cheatsheet

##### Table of Contents  
[Headers](#headers)  
[Emphasis](#emphasis)  
...snip...    
<a name="headers"/>
## Headers

如果将鼠标悬停在GitHub Markdown文件的Header上,我们会在左边看到一个简单的链接,您也可以使用该链接。该链接的格式为<项目URL#<标题名称> < header name> 必须全部小写。

If you hover over a Header in a GitHub Markdown file, you'll see a little link simple to the left of it, you can also use that link. The format for that link is <project URL#<header name>. The <header name> must be all lower case.

这篇关于如何在GitHub wiki中创建某种内容表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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