# 无法深度链接到文本中的锚点

**URL:** https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393
**Category:** Support
**Created:** [2021年十二月17日 02:12 UTC](https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393 "2021-12-17T02:12:04Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2021年十二月17日 07:25 UTC](https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393/2 "2021-12-17T07:25:12Z")

</div>

我将此用作手动锚点代码：

`<a>`（用于帖子内）

`https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393/2#header-name`（如果您想在主题外部使用链接）

例如 - [Cannot deep link to anchor in text - #2 by JammyDodger](https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393/2#header-name)

还有一个 DiscoTOC 主题组件可能值得一看？

> [@DiscoTOC - automatic table of contents](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143):
>
> discourse2Summary DiscoTOC will allow you to generate an interactive table of contents for your topics with one click!eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/discotoc)hammer_and_wrenchRepository Link [https://github.com/discourse/DiscoTOC](https://github.com/discourse/DiscoTOC)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Samples Desktop Mobile Features toc = table of contents Automatically generates the …

---

_[View the full topic](https://meta.discourse.org/t/cannot-deep-link-to-anchor-in-text/212393)._
