链接到GitHub上的其他Wiki页面? [英] Linking to other Wiki pages on GitHub?

查看:346
本文介绍了链接到GitHub上的其他Wiki页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  [[Wiki Page Name]] 

然而,我想在制作链接时显示不同于维基页面名称的文本。有没有办法做到这一点?我链接到维基页面都是错误的吗?

解决方案

默认情况下,GitHub使用 Markdown 语法,因此您可以这样做:

  [Arbitrary Link Text](维基页面名称)

查看 Markdown and 本博文,详细了解他们的wiki和他们支持的其他标记语法。

当您在主页上时,此解决方案会产生问题,因为它会创建相对URL。请查看下面的 Sven的回答


GitHub wikis allow you to link to other pages in the wiki like so:

[[Wiki Page Name]]

However, I want to display different text than the wiki page name when making the link. Is there a way to do this? Am I linking to wiki pages all wrong?

解决方案

GitHub by default uses Markdown syntax for the wikis so you can just do:

[Arbitrary Link Text](Wiki Page Name)

Check out Markdown and this blog post for more information about their wikis and the other markup syntaxes they support.

This solution has issues when you're on the home page because it creates relative URLs. Check out Sven's answer, below.

这篇关于链接到GitHub上的其他Wiki页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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