为什么gitlab的URL readme.md部分不滚动到部分?

发布于 2025-01-25 02:31:57 字数 459 浏览 2 评论 0原文

复制:

  1. gitlab存储库上创建readme.md文件。
  2. 使用在文件中创建一些标题,然后保存。
  3. 获取部分链接,例如滚动到最后一个标头,然后单击其旁边的“链接图标”。浏览器URL将显示诸如“ https://.../readme.md#my-last-header”之类的内容。
  4. 复制此URL并将其粘贴到新的浏览器选项卡中。
  5. 它应该显示文件然后向下滚动到“我的最后一个标头”,但不会滚动。它仅在其顶行中显示文件。

那是一个错误吗?

如何将URL获取到gitlab reademe.md文件中的部分,该文件将文件和scrolls 显示到该部分?

NB它在github中起作用。

谢谢

To reproduce:

  1. Create a README.md file on gitlab repository.
  2. Create some headers in the file using #, and save it.
  3. 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".
  4. Copy this URL and paste it in a new browser tab.
  5. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

埋情葬爱 2025-02-01 02:31:57

工作链接如下:

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文