作者:黄俊毅伶云政星 | 来源:互联网 | 2023-05-26 14:53
假设我在同一个git hub wiki页面中有两个点,为此我们将调用place 1
它place 2
.
##Title
###Place 1
Hello, this is some text to fill in this, [here](place2), is a link to the second place.
###Place 2
Place one has the fun times of linking here, but I can also link back [here](place1).
另一种选择是ToC.
##Title
[ToC]
###Place 1
###Place 2
有没有办法做到这一点?注意 - 看到这个,所以我会假设它是关于主题的.此外,它处理文件之间的转换,这个处理在同一文件之间进行.
1> blueCat..:
这篇关于Github的工作:
## Title
### Place 1
Hello, this is some text to fill in this, [here](#place-2), is a link to the second place.
### Place 2
Place one has the fun times of linking here, but I can also link back [here](#place-1).
转换规则摘要:
标点符号将被删除
领先的白色空间将被丢弃
大写将转换为更低
字母之间的空格将转换为 -
LivingSocial API设计指南是一个包含大量链接和格式的好示例文档
如果你有两个或多个标题为"Place"的标题,则链接将命名为"place","place-1","place-2"等.然后,如果你还有一个明确的标题`Place 2`,链接将是`place-2-1`.
2> bcattle..:
如果您有一堆具有相同名称的(子)标题,也可以创建命名自定义锚点.要使用标头插入HTML标记:
Optional Fields
然后通过ID属性链接到它:
[see above](#login-optional-fields)
还可以将锚标记直接添加到文档中:
谢谢,此解决方案有效,原因之一。去年对GIT markdown的更改阻止了将标题添加为“ #my heading”,而必须将其添加为“#my heading”,并在锚点中添加了一个空格,如((#my-heading)`不起作用