Title: KaTeX Math Rendering
Author: Ella Van Durpe
Published: <strong>2026 年 9 月 28 日</strong>
Last modified: 2026 年 9 月 28 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/katex-math.svg)

# KaTeX Math Rendering

 作者：[Ella Van Durpe](https://profiles.wordpress.org/ellatrix/)

[下载](https://downloads.wordpress.org/plugin/katex-math.0.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/katex-math/#description)
 * [评价](https://cn.wordpress.org/plugins/katex-math/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/katex-math/#developers)

 [支持](https://wordpress.org/support/plugin/katex-math/)

## 描述

WordPress supports math out of the box: it writes standard MathML, which the browser
renders. These renderings sometimes fall short, with oddly positioned strokes, thicker
lines and the like, in the math fonts browsers ship with. This small plugin bundles
KaTeX and uses its typesetting on the front end and in the editor, for the WordPress
Math block and the inline math format. There are no separate blocks, it is an alternate
rendering. To switch back to the WordPress rendering, deactivate the plugin and 
everything keeps working: Math blocks and inline math stay stored exactly as WordPress
stores them, with both the LaTeX and the MathML in the post content.

 * On the front end, KaTeX is loaded only on pages that contain math.
 * A formula KaTeX cannot render is left to the browser’s MathML.
 * Formulas keep the text size the browser gives MathML rather than KaTeX’s default
   enlargement. A theme that wants math larger sets `math` and `.katex` alike.

### Third-party code

The plugin bundles [KaTeX](https://katex.org/) 0.18.7, unmodified, in `vendor/katex`:
the minified script and stylesheet and the fonts of its npm release, under the MIT
license (see `vendor/katex/LICENSE`). Its source is at https://github.com/KaTeX/
KaTeX. Development happens at https://github.com/ellatrix/katex-math.

## 评价

此插件暂无评价。

## 贡献者及开发者

「KaTeX Math Rendering」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ella Van Durpe ](https://profiles.wordpress.org/ellatrix/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

[帮助将「KaTeX Math Rendering」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/katex-math)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/katex-math/)，查看[SVN仓库](https://plugins.svn.wordpress.org/katex-math/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/katex-math/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/katex-math/)。

## 更新日志

#### 0.1.0

 * Initial release.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**4 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.9 或更高版本 **
 *  已测试的最高版本为 **7.1.2**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/katex-math/)
 * 标签
 * [katex](https://cn.wordpress.org/plugins/tags/katex/)[latex](https://cn.wordpress.org/plugins/tags/latex/)
   [math](https://cn.wordpress.org/plugins/tags/math/)[mathml](https://cn.wordpress.org/plugins/tags/mathml/)
 *  [高级视图](https://cn.wordpress.org/plugins/katex-math/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/katex-math/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/katex-math/reviews/)

## 贡献者

 *   [ Ella Van Durpe ](https://profiles.wordpress.org/ellatrix/)
 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/katex-math/)