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

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

问题描述

GitHub wiki 允许您像这样链接到 wiki 中的其他页面:

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 默认使用 Markdown wiki 的语法,所以你可以这样做:

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

[Arbitrary Link Text](Wiki Page Name)

查看 Markdown这篇博文 了解更多关于他们的 wiki 和他们支持的其他标记语法的信息.

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

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

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天全站免登陆