# Discourse中代码块格式问题——红色文本和意外高亮

**URL:** <https://meta.discourse.org/t/issue-with-code-block-formatting-in-discourse-red-text-and-unintended-highlighting/321315>\
**Category:** Product Support\
**Tags:** code\
**Created:** [2024 年8 月 12 日 18:09 UTC](https://meta.discourse.org/t/issue-with-code-block-formatting-in-discourse-red-text-and-unintended-highlighting/321315 "2024-08-12T18:09:22Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![alex10](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex10/32/575949_2.png) [@alex10](https://meta.discourse.org/u/alex10)\
发布日期： [2024 年8 月 12 日 21:07 UTC](https://meta.discourse.org/t/issue-with-code-block-formatting-in-discourse-red-text-and-unintended-highlighting/321315/13 "2024-08-12T21:07:23Z")

</div>

我在安全模式下进行了检查，问题在那里似乎已解决——代码字体显示为等宽字体，链接也已正确高亮显示。

这很令人困惑，因为我们使用的是默认主题，没有添加任何其他组件，所以我不知道在正常模式下可能是什么原因导致了这个问题。

---

_[View the full topic](https://meta.discourse.org/t/issue-with-code-block-formatting-in-discourse-red-text-and-unintended-highlighting/321315)._
