我在我的Azure DevOps库中有一个标记文件。该文件具有使用标题锚点的目录:
- [1. Abstract](#1.-abstract)
- [2. Table of contents](#2.-table-of-contents)
- [3. Introduction](#3.-introduction)
- [3.1. Recommended reading](#3.1.-recommended-reading)
## 1. Abstract
...
## 2. Table of contents
...
## 3. Introduction
...
### 3.1. Recommended reading这些链接在vs代码和我使用的任何其他编辑器中都有效。在Azure DevOps中,当导航到文件并选择预览时,标题锚点将呈现为Azure DevOps工作项链接:

有没有一种方法可以使用标题锚,而不让它们链接到Azure DevOps中的工作项?
发布于 2021-02-02 05:31:19
您可以使用TOC directive,而不是手动创建锚链接。它不仅可以在wiki中使用,还可以在标记文件的预览窗格中使用。
[[_TOC_]]
## 1. Abstract
...
## 2. Table of contents
...
## 3. Introduction
...
### 3.1. Recommended reading结果将如下所示(链接是指向每个标题的锚点链接)

https://stackoverflow.com/questions/65998524
复制相似问题