# Markdownで作成された投稿のアンカーの処理

**URL:** <https://meta.discourse.org/t/handling-anchors-in-posts-created-with-markdown/349349>\
**Category:** Product Support\
**Tags:** markdown\
**Created:** [2025 年 1 月 28 日午前 9:58 UTC](https://meta.discourse.org/t/handling-anchors-in-posts-created-with-markdown/349349 "2025-01-28T09:58:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mrmowji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrmowji/32/505517_2.png) [@mrmowji](https://meta.discourse.org/u/mrmowji)\
**Post date:** [2025 年 6 月 15 日午前 10:49 UTC](https://meta.discourse.org/t/handling-anchors-in-posts-created-with-markdown/349349/7 "2025-06-15T10:49:24Z")

</div>

> [@Arkshine](#):
>
> 基本的に、これらのIDが期待できます。
> 
> - `h-{headingId}` (投稿IDなし、スラッグなし)
> - `h-{slug}-{headingId}` (投稿IDなし)
> - `p-{postId}-h-{headingId}` (投稿IDあり、スラッグなし)
> - `p-{postId}-h-{slug}-{headingId}` (投稿IDあり、スラッグあり)

@Arkshine Discourse（現在のウェブサイト）のアンカーがどのように生成されるかご存知ですか？共有されたパターンに従っていないように見えるため、質問しています。たとえば、これを見てください。

```plaintext
https://meta.discourse.org/t/adding-a-table-to-your-post-using-markdown/66544#creating-a-simple-table-1

```

これには設定がありますか？見つけられませんでした。それとも、`<a>` タグを使用していますか？それともあなたのプラグインですか？

---

_[View the full topic](https://meta.discourse.org/t/handling-anchors-in-posts-created-with-markdown/349349)._
