存储库中的 Azure DevOps 降价预览:标题锚呈现为工作项链接
Azure DevOps markdown preview in repo: heading anchors rendering as work item links
我的 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
links 在 vs code 和我使用的任何其他编辑器中工作。
在 Azure DevOps 中,导航到文件并选择预览时,标题锚点呈现为 Azure DevOps 工作项 links:
有没有一种方法可以在不使用标题锚 link 的情况下在 Azure DevOps 中处理项目?
您可以使用 TOC directive 而不是手动创建锚链接。它不仅适用于 wiki,还适用于 markdown 文件的预览面板。
[[_TOC_]]
## 1. Abstract
...
## 2. Table of contents
...
## 3. Introduction
...
### 3.1. Recommended reading
结果将如下所示(链接是每个标题的锚链接)
我的 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
links 在 vs code 和我使用的任何其他编辑器中工作。 在 Azure DevOps 中,导航到文件并选择预览时,标题锚点呈现为 Azure DevOps 工作项 links:
有没有一种方法可以在不使用标题锚 link 的情况下在 Azure DevOps 中处理项目?
您可以使用 TOC directive 而不是手动创建锚链接。它不仅适用于 wiki,还适用于 markdown 文件的预览面板。
[[_TOC_]]
## 1. Abstract
...
## 2. Table of contents
...
## 3. Introduction
...
### 3.1. Recommended reading
结果将如下所示(链接是每个标题的锚链接)