如何使用Markdown在标题标题为带空格的句子的情况下对同一文档的各节进行链接引用? [英] How do I make linked references to sections of the same document using Markdown where the heading title is a sentence with spaces?

查看:341
本文介绍了如何使用Markdown在标题标题为带空格的句子的情况下对同一文档的各节进行链接引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可行

1. [Notifier system requirements](#requirements)

这不起作用

1. [Deployment steps](#steps to deployment)

Steps to deploymentrequirements是我的README.md文件中的标题/节标题.

Steps to deployment and requirements are the header/section titles in my README.md file.

推荐答案

通过将其悬停或使用浏览器的devtools检查呈现的标头的目标.您应该发现部署步骤"标头的目标不是steps to deployment,而是steps-to-deployment.

Look at the target of the rendered header, either by mousing over it or by inspecting it with your browser's devtools. You should find that the target for your "Steps to deployment" header isn't steps to deployment, but rather steps-to-deployment.

像这样更新您的链接,它应该可以工作:

Update your link like so and it should work:

1. [Deployment steps](#steps-to-deployment)

这篇关于如何使用Markdown在标题标题为带空格的句子的情况下对同一文档的各节进行链接引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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