Skip to content
/ mathquill Public
forked from mathquill/mathquill

Magic textboxes where you can type math as easily as writing!

License

Notifications You must be signed in to change notification settings

Khan/mathquill

 
 

Repository files navigation

by Han, Jeanine, and Mary (maintainers@mathquill.com) 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)

Khan Academy - Releasing

These notes are specific to Khan Academy's fork of Mathquill and cover how we release updates.

New releases are published through Github Releases and currently are the following set of manual steps:

  1. Bump the version in package.json (using semver as a guide for what the new version number should be)
  2. Run make
  3. Run npm pack
  4. Create a new release. The git tag for the release should be the version number prefixed with a "v" (for example: release 1.0.1 has the tag v1.0.1). The title is the same as the git tag (ie. v1.0.1). Drag the .tgz file that was created by step 3 onto the release to attach it.

Once you've done these steps, you can update applications that use Mathquill to use this new release.

About

Magic textboxes where you can type math as easily as writing!

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 53.8%
  • TypeScript 33.5%
  • HTML 9.4%
  • Less 1.2%
  • CSS 1.1%
  • Makefile 0.6%
  • Shell 0.4%