为什么gitlab的URL readme.md部分不滚动到部分?
复制:
- 在
gitlab
存储库上创建readme.md
文件。 - 使用
#
在文件中创建一些标题,然后保存。 - 获取部分链接,例如滚动到最后一个标头,然后单击其旁边的“链接图标”。浏览器URL将显示诸如“ https://.../readme.md#my-last-header”之类的内容。
- 复制此URL并将其粘贴到新的浏览器选项卡中。
- 它应该显示文件然后向下滚动到“我的最后一个标头”,但不会滚动。它仅在其顶行中显示文件。
那是一个错误吗?
如何将URL获取到gitlab reademe.md文件中的部分,该文件将文件和scrolls 显示到该部分?
NB它在github
中起作用。
谢谢
To reproduce:
- Create a
README.md
file ongitlab
repository. - Create some headers in the file using
#
, and save it. - Get the section link, e.g. scroll to the last header, and click the "link icon" beside it. The browser URL will show something like "https://.../README.md#my-last-header".
- Copy this URL and paste it in a new browser tab.
- It's supposed to display the file then scroll down to "my last header", but it doesn't scroll. It only displays the file at the top line of it.
Is that a bug?
How to get a URL to a section in Gitlab Reademe.md file that displays the file and scrolls to the section?
N.B. It works in github
.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
工作链接如下:
https://gitlab.com/&user&user&user&gt ;/< project>/#my-last-section
假设
Read> Read> Read> Reademe.md
代码>直接在项目根文件夹上找到。打开readme.md file :
https://gitlab.com/&user&user&user>/prot; - last部分
具有错误,或者是为此设计的!
The working link is got as following:
https://gitlab.com/<user>/<project>/#my-last-section
Assuming that the
READEME.md
is found on the project root folder directly.Instead of the link got when opening the readme.md file:
https://gitlab.com/<user>/<project>/blob/main/README.md#my-last-section
Which either has a bug, or is designed for that!