# 有没有办法链接到帖子的中间部分？

**URL:** <https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848>\
**Category:** Support\
**Created:** [2018年八月3日 14:23 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848 "2018-08-03T14:23:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2018年八月3日 14:23 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/1 "2018-08-03T14:23:11Z")

</div>

I’m aware of how to use Markdown to link to a point within a post using `<a` tags, but my question is: is there any way I can do that from outside a post using a URL to point me to the post and the location within it? (assuming someone has already set up the appropriate tag within it). If not, wouldn’t that be a great extension of the standard?

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2018年八月3日 14:27 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/2 "2018-08-03T14:27:15Z")

</div>

> [@merefield](#):
>
> is there any way I can do that from outside a post using a URL to point me to the post and the location within it

Yep, it works exactly the same way as within a post, just add the `#` at the end of the URL. For example:

```plaintext
https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b

```

[https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b)

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2018年八月3日 14:42 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/3 "2018-08-03T14:42:41Z")

</div>

Brilliant … thanks David! I had tried # but was putting in a / character just before it

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2018年八月3日 14:55 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/4 "2018-08-03T14:55:16Z")

</div>

@david what does the target markdown look like? I think I’m messing that up …

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2018年八月3日 14:57 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/5 "2018-08-03T14:57:48Z")

</div>

You can have a look at the markdown for any post by going to a link like

```plaintext
https://meta.discourse.org/raw/93648/1
(`/raw/{topic id}/{post number}`)

```

So they look something like this:

```plaintext
<h4 id="heading--2-d">Some heading</h4>

```

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2018年九月3日 06:56 UTC](https://meta.discourse.org/t/is-there-any-way-to-hyperlink-to-the-middle-of-a-post/93848/11 "2018-09-03T06:56:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
