跳到内容

MathML Block

v1.2.4

Adam Silverstein · 2018年12月28日 上架

A MathML block for the WordPress block editor (Gutenberg). No longer maintained - WordPress core now includes a Math block.

正在使用
1,000+
评分
3.8 / 5
累计下载
3 万
最近更新
2026年11月21日
4 条评价需要 WordPress 5.0+已测试到 7.2PHP 5.6+

截图

Example of adding a MathML block.
Example of adding a MathML block.

This plugin is no longer maintained and will not receive further updates.

WordPress core now includes its own Math block (core/math), present in WordPress 7.0 and later, which covers the same ground: it renders mathematical notation written as LaTeX, and stores the rendered MathML alongside it. Anyone using this plugin is encouraged to move to the core Math block.

Version 1.2.4 is the final release. No further compatibility, bug fix, or security updates are planned.

A MathML block for the WordPress block editor (Gutenberg).
Requires PHP 5.4+ and WordPress 5.0+.

Development takes place on the GitHub repository: https://github.com/adamsilverstein/mathml-block.

Screencast: https://cl.ly/c0f6bbfbc3b1

What is MathML?

Mathematical Markup Language is a mathematical markup language, an application of XML for describing mathematical notations and capturing both its structure and content. It aims at integrating mathematical formulae into World Wide Web pages and other documents.

The MathML block uses MathJax to render MathML formulas in the editor and on the front end of a website. MathJax (https://www.mathjax.org/) is A JavaScript display engine for mathematics that works in all browsers.

To test a MathML block and enter a formula, for example: \[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\].

To test using math formulas inline, type an formula into a block of text, select it and hit the ‘M’ icon in the control bar. For example: \( \cos(θ+φ)=\cos(θ)\cos(φ)−\sin(θ)\sin(φ) \). Note: if you are copying and pasting formulas into the rich text editor, switching to HTML/code editor mode is less likely to reformat your pasted formula.

Technical Notes

  • Requires PHP 5.6+.
  • Requires WordPress 5.0+.
  • Issues and Pull requests welcome on the GitHub repository: https://github.com/adamsilverstein/mathml-block.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums