@digabi/mathquill

中文文档
0.10.12发布于 2023/01/12MPL-2.0CommonJS近 30 天下载 3.2万

Easily type math in your webapp

原始使用文档
文档目录3 节
  1. Getting Started
  2. Docs
  3. Open-Source License

MathQuill

by Han, Jeanine, and Mary ([email protected]) slackin.mathquill.com

MathQuill is a web formula editor designed to make typing math easy and beautiful.

homepage demo

The MathQuill project is supported by its partners. We hold ourselves to a compassionate Code of Conduct.

MathQuill is resuming active development and we're committed to getting things running smoothly. Find a dusty corner? Let us know in Slack. (Prefer IRC? We're #mathquill on Freenode.)

Getting Started

MathQuill has a simple interface. This brief example creates a MathQuill element and renders, then reads a given input:

var htmlElement = document.getElementById('some_id');
var config = {
  handlers: { edit: function(){ ... } },
  restrictMismatchedBrackets: true
};
var mathField = MQ.MathField(htmlElement, config);

mathField.latex('2^{\\frac{3}{2}}'); // Renders the given LaTeX in the MathQuill field
mathField.latex(); // => '2^{\\frac{3}{2}}'

Check out our Getting Started Guide for setup instructions and basic MathQuill usage.

Docs

Most documentation for MathQuill is located on ReadTheDocs.

Some older documentation still exists on the Wiki.

Open-Source License

The Source Code Form of MathQuill is subject to the terms of the Mozilla Public License, v. 2.0: http://mozilla.org/MPL/2.0/

The quick-and-dirty is you can do whatever if modifications to MathQuill are in public GitHub forks. (Other ways to publicize modifications are also fine, as are private use modifications. See also: MPL 2.0 FAQ)

版本与发布记录

@digabi/mathquill 共发布 8 个版本,首次发布于 2019/11/26;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.10.12latest2023/01/123 年前
0.10.12-02023/01/103 年前
0.10.112023/01/093 年前
0.10.62022/05/234 年前
0.10.52020/09/236 年前
0.10.42020/09/236 年前

关于 @digabi/mathquill 的常见问题

@digabi/mathquill 是什么?

Easily type math in your webapp

如何安装 @digabi/mathquill?

在项目目录运行 npm install @digabi/mathquill,或使用 pnpm add / yarn add / bun add。

@digabi/mathquill 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/digabi__mathquill 是否存在。

@digabi/mathquill 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@digabi/mathquill 可以商用吗?

@digabi/mathquill 使用 MPL-2.0 许可。弱 Copyleft:可以商用,也可以和闭源代码一起使用;但如果分发时修改了 MPL 授权的文件,这些文件的修改需以 MPL 开源。以上为概括,不构成法律意见,请以许可原文为准。

@digabi/mathquill 的下载量有多少?

根据 npm 官方下载统计,@digabi/mathquill 在 2026/10/12 – 2026/11/10 这 30 天内被下载 31,917 次,日均约 1,064 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@digabi/mathquill 还在维护吗?

最新版本 0.10.12 发布于 2023/01/12(3 年前);至今共发布 8 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/11/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。