MathML

数学标记语言 (MathML) 是一种基于 XML 的语言,用于描述数学符号。

¥Mathematical Markup Language (MathML) is an XML-based language for describing mathematical notation.

MathML 最初被设计为浏览器、办公套件、计算机代数系统EPUB 阅读器、基于 LaTeX 的生成器的通用规范。然而,这种方法不太适合 Web:专注于语义的子集 从未在浏览器中实现,而 专注于数学布局的子集 导致浏览器实现不完整且不一致。

¥MathML was originally designed as a general-purpose specification for browsers, office suites, computer algebra systems, EPUB readers, LaTeX-based generators. However, this approach was not very adapted to the Web: the subset focusing on semantics has never been implemented in browsers while the subset focusing on math layout led to incomplete and inconsistent browser implementations.

MathML 核心 是基于 LaTeX开放字体格式 的规则增加了实现细节的子集。它专为浏览器量身定制,专门设计用于与其他 Web 标准(包括 HTMLCSSDOMJavaScript)良好配合。

¥MathML Core is a subset with increased implementation details based on rules from LaTeX and the Open Font Format. It is tailored for browsers and designed specifically to work well with other web standards including HTML, CSS, DOM, JavaScript.

你将在下面找到使用 MathML 的文档、示例和工具的链接。MDN 使用 MathML 核心 作为参考规范,但由于不稳定的标准化历史,遗留的 MathML 功能可能仍会出现在现有的实现和 Web 内容中。

¥Below you will find links to documentation, examples, and tools to work with MathML. MDN uses MathML Core as a reference specification but, due to an erratic standardization history, legacy MathML features may still show up in existing implementations and web content.

注意:强烈建议开发者和作者切换到 MathML Core,或许可以依靠其他 Web 技术来覆盖缺失的用例。数学工作组正在维护一组 MathML 填充 来促进这一过渡。

¥Note: It is highly recommended that developers and authors switch to MathML Core, perhaps relying on other web technologies to cover missing use cases. The Math WG is maintaining a set of MathML polyfills to facilitate that transition.

MathML 参考

¥MathML reference

MathML 元素参考

有关每个 MathML 元素的详细信息以及桌面和移动浏览器的兼容性信息。

MathML 属性参考

有关修改元素外观或行为的 MathML 属性的信息。

MathML 示例

MathML 示例和示例可帮助你了解其工作原理。

编写 MathML

编写 MathML 的建议和技巧,包括建议的 MathML 编辑器以及如何将其输出集成到 Web 内容中。

数学 ML 教程

对 MathML 的简单介绍。

从社区获得帮助

工具

相关话题

¥Related topics

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility