如何在Gitlab wiki中使用相同的页面链接?例如:
Contents
- heading1 ---> this should move the page to heading 1
- heading2
- heading3
- heading4
HEADING 1
Run Code Online (Sandbox Code Playgroud)
基本上我正在尝试创建像维基百科这样的页面,您可以使用目录在单个页面中导航.
这已在此拉取请求中添加.
它会生成toc_x锚点,每个新标题都会增加x.
如果您定义如下链接:
[My link to third header](#toc_3)
Run Code Online (Sandbox Code Playgroud)
它会将您链接到当前页面的第三个标题(无论标题是什么级别).
| 归档时间: |
|
| 查看次数: |
4311 次 |
| 最近记录: |