Gitlab Wiki same page links [closed]

丶灬走出姿态 提交于 2019-12-21 04:34:09

问题


How do I use same page links in the Gitlab wiki? For example:

Contents

 - heading1 ---> this should move the page to heading 1
 - heading2
 - heading3
 - heading4

HEADING 1

Basically I am trying to create a page like Wikipedia where you can navigate a single page using a table of contents.


回答1:


This has been added in this pull request.

It generates toc_x anchors, with x incremented for each new header.

If you define a link like:

 [My link to third header](#toc_3)

It will link you to the current page third header (no matter what level that header is).



来源:https://stackoverflow.com/questions/13757329/gitlab-wiki-same-page-links

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!