Gitlab Wiki 同页链接 [英] Gitlab Wiki same page links

查看:35
本文介绍了Gitlab Wiki 同页链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Gitlab wiki 中使用相同的页面链接?例如:

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

基本上,我正在尝试创建一个类似于 Wikipedia 的页面,您可以在其中使用目录导航单个页面.

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

推荐答案

这个拉取请求.

它生成 toc_x 锚点,每个新标头 x 递增.

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

如果您定义如下链接:

 [My link to third header](#toc_3)

它会将您链接到当前页面的第三个标题(无论该标题是什么级别).

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

这篇关于Gitlab Wiki 同页链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆