# Support formatting of flag "reason" text

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

<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: [30 juli 2026 om 12:17 UTC](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889/3 "2026-07-30T12:17:22Z")

</div>

I _think_ it broken in this [security fix](https://github.com/discourse/discourse/commit/8ae7cb2414d6918d7fc45e1fda7ffbb32912a975).

Should be better with

> <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.

---

_[View the full topic](https://meta.discourse.org/t/support-formatting-of-flag-reason-text/408889)._
