# Discourse Math 的新版本发布

**URL:** https://meta.discourse.org/t/a-new-release-of-discourse-math/393633
**Category:** Announcements
**Tags:** math
**Created:** [2026年一月16日 05:22 UTC](https://meta.discourse.org/t/a-new-release-of-discourse-math/393633 "2026-01-16T05:22:45Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2026年一月16日 05:22 UTC](https://meta.discourse.org/t/a-new-release-of-discourse-math/393633/1 "2026-01-16T05:22:45Z")

</div>

我非常高兴地宣布我们的 Discourse Math 插件有了重大升级！

特别感谢 @mcmcclur 帮助测试和构建了大部分新的和升级的 [discourse-math](https://meta.discourse.org/t/discourse-math/65770?tl=en)。

这是一个非常重大的变化——我们已将所有内容从 MathJax 2.x 版本升级到 4.1 版本，赶上了多年的功能和进步。

此外，我们修改了设计，使将来升级插件变得更加容易。

我们的新迭代对 LLM（大型语言模型）的输出更加友好，LLM 更倾向于使用 LaTeX 风格的数学行内公式，例如 \(e=mc^2\)。

该插件仍然具有很高的可配置性——您可以使用 MathJax 或 KaTeX 进行数学渲染，甚至可以选择禁用对 `\\(` 的处理。

* * *

## 一些有趣的示例来展示 MathJax 4.1

**二次公式：**

x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}

**欧拉恒等式：**

e^{i\\pi} + 1 = 0

**麦克斯韦方程组：**

\\nabla \\times \\mathbf{E} = -\\frac{\\partial \\mathbf{B}}{\\partial t}

**一个彩色的积分：**

\\int\_{-\\infty}^{\\infty} {\\color{red}e}^{{\\color{blue}-x}^{\\color{green}2}} \\, {\\color{orange}dx} = {\\color{purple}\\sqrt{\\pi}}

**一个无穷级数：**

\\sum\_{n=1}^{\\infty} \\frac{1}{n^2} = \\frac{\\pi^2}{6}

**MathJax 4 中的新功能——`\\U{}` 宏：**  
您现在可以直接在 TeX 输入中插入 Unicode 字符！例如：

A \\U{229E} B = C

`$$A \\U{229E} B = C$$`

这会生成 U+229E（⊞，一个带方框的加号）。

---

_[View the full topic](https://meta.discourse.org/t/a-new-release-of-discourse-math/393633)._
