# 감시 단어 대체 시 마크다운 허용

**URL:** https://meta.discourse.org/t/allowing-markdown-when-replacing-in-watched-words/272014
**Category:** Feature
**Tags:** watched-words
**Created:** [7월 18, 2023, 7:21오후 UTC](https://meta.discourse.org/t/allowing-markdown-when-replacing-in-watched-words/272014 "2023-07-18T19:21:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)
#### Post date: [7월 18, 2023, 7:21오후 UTC](https://meta.discourse.org/t/allowing-markdown-when-replacing-in-watched-words/272014/1 "2023-07-18T19:21:14Z")

</div>

시나리오:  
`GET`(따옴표 제외)와 같은 감시 단어를 설정하고, 이를 `## GET`으로 교체하여 H2 헤더로 만들고 싶습니다. 해당 감시 단어와 교체 내용을 생성했지만, `GET`을 포함하여 메시지를 작성한 후 저장 버튼을 누르면 게시글에 다음과 같은 결과가 표시됩니다:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/7/7/d77059b809f3ad50dfaddc7881575c39fdc15b89.png)

이는 마크다운으로 렌더링되어야 할 것 같습니다.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [7월 19, 2023, 9:08오전 UTC](https://meta.discourse.org/t/allowing-markdown-when-replacing-in-watched-words/272014/2 "2023-07-19T09:08:10Z")

</div>

재현할 수 있습니다. 대체 문자열에서도 마크다운과 HTML이 파싱되지 않습니다.

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/b/9/2b9e276b64b10278d9ad5ee36913012b2c8eb7ec.png)

---

<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: [5월 14, 2024, 9:50오전 UTC](https://meta.discourse.org/t/allowing-markdown-when-replacing-in-watched-words/272014/3 "2024-05-14T09:50:02Z")

</div>

이제 HTML을 사용하여 이를 달성할 수 있을 것 같습니다:

> <https://github.com/discourse/discourse/pull/26883>
>
> This adds support for Watched Words to allow replacement with HTML content rathe…r than always replacing with text.
> 
> Can be useful when automatically replacing with the \`\<abbr\>\` tag for example.
> 
> Discussion - https://meta.discourse.org/t/replace-text-with-more-than-just-links/305672

([Replace text with more than just links? - #23 by zogstrip](https://meta.discourse.org/t/replace-text-with-more-than-just-links/305672/23?u=jammydodger))

이제 Replace and Link에서 각 Watched Word에 대해 ‘Outputs HTML in the replacement’를 옵션으로 선택할 수 있습니다.

Markdown은 여전히 지원되지 않지만, 이것도 #Contribute > Feature 요청에 해당한다고 생각하므로 이 문제를 넘기겠습니다. 👍
