# 粘贴了带有行范围的链接(如 #L10-L20),但显示的却是整个文件 **您看到的现象** 我粘贴了带有行范围的链接(如 #L10-L20),但显示的却是整个文件。 --- ## 原因 Capable 会从链接中读取行号,但宏没有用于保留行号的设置,因此行号会被丢弃。 --- ## 处理方法 不支持显示行范围。您可以显示整个文件,或者如果只想在页面上显示部分内容,请拆分源文件。 --- ## 相关设置 | **设置** | **位置** | **功能简介** | | --------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------- | | 在整个站点中隐藏 GitHub | 应用属性 \`capable-global-hidden-capabilities\`,对象名称 \`hiddenCapabilities\`,值 | 在整个站点范围内隐藏 GitHub。重要提示:这只会隐藏 GitHub 署名栏。现有的 GitHub 宏仍会在页面上显示。 | --- ## 相关内容 ### [粘贴了 GitHub URL,但它没有转换为宏](https://help.gocapable.com/zh-hans/git/pasted-a-github-url-and-it-did-not-turn-into-a-macro.html) 只有 github.com 的 /blob/ 链接和 raw.githubusercontent.com 链接会自动转换,并且仅 ### [粘贴了类似 github.com/owner/repo/blob/refs/heads/main/file.md 的链接,宏无法正常工作](https://help.gocapable.com/zh-hans/git/pasted-a-link-like-github-com-owner-repo-blob-refs-heads-main-file-md-and-the-macro-is-broken.html) 自动转换所使用的解析器会将第三个路径段作为分支,而不进行检查 ### [其他所有情况](https://help.gocapable.com/zh-hans/git/everything-else.html) 此类问题的其余内容。 --- _找到了吗?很好。_