[WordPress] 外掛分享: KaTeX Math Rendering

首頁 › 外掛目錄 › KaTeX Math Rendering
全新外掛
安裝啟用
—
尚無評分
31 天前
最後更新
—
問題解決
WordPress 6.9+ PHP 7.4+ v0.1.0 上架:2026-09-27

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「KaTeX Math Rendering」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Mastodon