# 仅采用 Markdown 编辑器中的等宽字体

**URL:** https://meta.discourse.org/t/monospace-font-in-the-markdown-only-editor/359936
**Category:** Announcements
**Tags:** composer
**Created:** [2025年四月1日 03:49 UTC](https://meta.discourse.org/t/monospace-font-in-the-markdown-only-editor/359936 "2025-04-01T03:49:49Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [2025年四月2日 00:21 UTC](https://meta.discourse.org/t/monospace-font-in-the-markdown-only-editor/359936/10 "2025-04-02T00:21:35Z")

</div>

> [@Jagster](#):
>
> 这确实让我很恼火，但 **在这里** 我可以忍受，因为我写得不多。

如果你为 Firefox 和 Chromium 浏览器下载一个名为 [Stylus](https://github.com/openstyles/stylus?tab=readme-ov-file#releases) 的浏览器扩展，你就可以覆盖其他网站的 CSS。

我不太使用 Safari，也没有尝试过，但有一个设置可以在 _高级_ → _样式表_ 下添加自定义样式表。

![Safari 设置截图](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/4X/b/9/1/b9106b177f02a0cc2f6f6a3e02e412038e8720d7_2_690x78.png)

我认为这个 CSS 会起作用：

```css
.d-editor-input {
    font-family: var(--font-family) !important;
}

```

（如果你想要不同的字体，请将 `var(--font-family)` 替换为其他字体名称。）

---

_[View the full topic](https://meta.discourse.org/t/monospace-font-in-the-markdown-only-editor/359936)._
