# 플래그 "reason" 텍스트의 포맷팅 지원

**URL:** https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889
**Category:** Feature
**Tags:** moderation, fixed
**Created:** [7월 30, 2026, 3:43오전 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889 "2026-07-30T03:43:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![per1234](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per1234/32/569645_2.png) [@per1234](https://meta.discourse.org/u/per1234)
#### Post date: [7월 30, 2026, 3:43오전 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889/1 "2026-07-30T03:43:00Z")

</div>

### 기능 설명:

사용자와 내장 자동화 시스템(예: [Discourse AI 스팸 감지](https://meta.discourse.org/t/discourse-ai-spam-detection/343541))에 의해 생성되는 표준 플래그 외에도, Discourse에서는 포럼 관리자가 다음과 같은 플래그를 생성하는 사용자 정의 시스템을 구현할 수 있습니다:

- [“ **Discourse Automation** ”](https://meta.discourse.org/t/discourse-automation/195773) 코어 플러그인의 “**AI를 사용하여 게시물 분류(Triage posts using AI)**” 스크립트를 통해.
- [“ **Workflows** ”](https://meta.discourse.org/t/a-preview-of-the-new-workflows-feature/406990) 코어 플러그인을 통해.

이러한 플래그의 검토를 용이하게 하기 위해, 검토 항목에 표시될 보조 정보를 제공하는 것이 유용할 수 있습니다. 이는 “ **Discourse Automation** ” 및 “ **Workflows** ” 플러그인 모두에서 지원됩니다.

검토 항목에 표시되는 “Reason” 텍스트의 기본 서식 설정을 지원하도록 추가해 주세요.

🙂 더 복잡한 정보는 가독성을 향상시키는 방식으로 제시될 수 있습니다.

### 현재 동작:

소스 텍스트를 통해 다른 서식을 적용하려는 모든 시도에도 불구하고, “Reason” 텍스트는 항상 한 줄로 표시됩니다.

🙁 플래그 생성 시스템에서 제공되는 더 복잡한 정보를 모더레이터가 읽는 것이 비효율적입니다.

#### 재현 단계:

1. 관리자 권한이 있는 Discourse 포럼 계정으로 로그인합니다.
2. “Workflows” 페이지(`/admin/plugins/discourse-workflows/workflows`)를 엽니다.
3. “ **+ New workflow** ” 버튼을 클릭합니다.  
새 워크플로가 생성됩니다.
4. **+** 버튼을 클릭합니다.  
“ **Add step** ” 패널이 열립니다.
5. 패널에서 **Discourse actions \> Flag post** 를 선택합니다.  
워크플로에 “Flag post” 단계가 추가됩니다.
6. “Flag post” 단계를 더블 클릭합니다.  
해당 단계의 설정 다이얼로그가 열립니다.
7. 다이얼로그의 “ **Post ID** ” 필드에 임의의 게시물 ID를 설정합니다.
8. “ **Reason** ” 필드에 다음 내용을 추가합니다:

```plaintext
foo<br />bar

baz  
qux

asdf\
zxcv

```

9. 단계 설정 다이얼로그를 닫습니다.
10. “Flag post” 단계에 마우스 포인터를 올려놓습니다.  
단계 위에 버튼이 나타납니다.
11. 단계 위의 **▷** 버튼(“Execute step”)을 클릭합니다.
12. 검토 큐(`/review`)로 이동합니다.

🙁 HTML, Markdown, 일반 텍스트 서식을 사용하여 줄바꿈을 추가하려는 시도에도 불구하고, 워크플로에 의해 생성된 검토 항목의 “Reason” 텍스트는 한 줄로 표시됩니다:

![image](https://global.discourse-cdn.com/meta/original/4X/0/a/9/0a91fcdd97ebb23635d2af02756c378b1051a296.png)

### Discourse 버전:

`ba63d427fd88c5d83cb18695b16dbdbfad6fa834`

### 추가 정보:

과거에는 HTML을 사용한 서식이 지원되었습니다. 당시에는 “ **Workflows** ” 플러그인이 도입되기 전이어서 “ **Discourse Automation** ” 플러그인의 “ **AI를 사용하여 게시물 분류** ” 스크립트만 사용하고 있었습니다. 포럼의 Discourse 버전이 `6759ad71cac395697b2978eb34fcfbf1162d30d1`에서 `a15f83133a8b30958fc09efcc407601299c22f37`으로 업데이트되었을 때 작동이 중단되었습니다.

[해당 두 버전 간의 변경 사항](https://github.com/discourse/discourse/compare/6759ad71cac395697b2978eb34fcfbf1162d30d1...a15f83133a8b30958fc09efcc407601299c22f37)을 살펴봤지만, 구체적인 회귀(regression) 지점을 식별하지는 못했습니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 30, 2026, 12:17오후 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889/3 "2026-07-30T12:17:22Z")

</div>

이 [보안 수정](https://github.com/discourse/discourse/commit/8ae7cb2414d6918d7fc45e1fda7ffbb32912a975)에서 깨진 것 같_습니다_.

다음 PR으로 더 좋아질 것입니다.

> <https://github.com/discourse/discourse/pull/42164>
>
> Previously, reviewable reasons from custom flag producers were treated as inline… text, and pre-escaping prevented Markdown and line-break formatting from being recognized.
> 
> This change cooks a constrained Markdown subset at serialization so every producer shares one sanitization boundary, renders cooked block HTML directly, and keeps watched-word matches literal because their Markdown metacharacters are data rather than formatting.

---

<div class="post-metadata">

### Author: ![per1234](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per1234/32/569645_2.png) [@per1234](https://meta.discourse.org/u/per1234)
#### Post date: [7월 31, 2026, 11:42오전 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889/5 "2026-07-31T11:42:06Z")

</div>

이 요청을 신속하게 해결해 주시고, 조사 결과를 공유해 주신 시간까지 내어주신 @zogstrip님께 진심으로 감사드립니다!

---

<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: [8월 2, 2026, 12:07오후 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889/6 "2026-08-02T12:07:04Z")

</div>


