# トピックへのリンクでテキストを自動置換

**URL:** https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134
**Category:** Support
**Created:** [2021 年 6 月 17 日午前 12:05 UTC](https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134 "2021-06-17T00:05:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RickThrivingNow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rickthrivingnow/32/119287_2.png) [@RickThrivingNow](https://meta.discourse.org/u/RickThrivingNow)
#### Post date: [2021 年 6 月 17 日午前 12:05 UTC](https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134/1 "2021-06-17T00:05:57Z")

</div>

自動置換を使って概念語やフレーズをトピックに自動リンクさせたいと考えていました。例えば、

EFT Tapping

という言葉をそのトピックへのリンクにしたいのです。しかし、置換テキストに Markdown や HTML を使用すると、レンダリングされずにそのまま表示されてしまいます。

何か見落としているのでしょうか？それとも「リンクで置換する」というのは、本当に単語「google」をリンクそのもので置き換えるという意味で、

> If you want search google you can

が

> If you want to search [https://google.com](https://google.com) you can

にはなっても、

> If you want to search [google](https://google.com) you can

にはならないということでしょうか？

私の理解で合っていますか？

ありがとうございます！

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2021 年 6 月 17 日午前 10:52 UTC](https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134/2 "2021-06-17T10:52:33Z")

</div>

こんにちは、

このテーマコンポーネントを使ってみたことはありますか？

> [@Auto-Linkify Words](https://meta.discourse.org/t/linkify-words-in-post/82193?u=itsbhanusharma):
>
> :exclamation:Discourse has a built-in feature called Watched Words which can [replicate most of the features](https://meta.discourse.org/t/watched-words-reference-guide/241735) of this theme component. Consider using that before installing this theme component. discourse2Summary Auto-Linkify Words allows you to automatically hyperlink certain words or patterns in your post with the desired destination URL.hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-linkify-words](https://github.com/discourse/discourse-linkify-words)open_bookNew to Discourse Themes? [Beginner’s …](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966)

---

<div class="post-metadata">

### Author: ![RickThrivingNow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rickthrivingnow/32/119287_2.png) [@RickThrivingNow](https://meta.discourse.org/u/RickThrivingNow)
#### Post date: [2021 年 6 月 17 日午後 5:49 UTC](https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134/3 "2021-06-17T17:49:27Z")

</div>

ありがとうございます。それで動作しました！そこには、Discourse Core に含まれる予定だとの返信があり、確認しました：

/admin/customize/watched\_words/action/replace

単語を入力し、その後 Markdown なしで URL を入力するだけで動作します！つまり、autolink テーマコンポーネントを使わずに動作させるにはこの方法です。

ヒントをありがとうございます！  
Rick

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2022 年 1 月 17 日午後 8:44 UTC](https://meta.discourse.org/t/auto-replace-text-with-link-to-topic/194134/4 "2022-01-17T20:44:46Z")

</div>

Discourse の標準機能になったため、テーマコンポーネントは必要ありません。

管理者 → カスタマイズ → 監視対象の単語 → 置換
