Filled in links and some minor fixes
diff --git a/README.md b/README.md index f7afc72..d91f8de 100644 --- a/README.md +++ b/README.md
@@ -2,22 +2,17 @@ by [Han](http://github.com/laughinghan), [Jeanine](http://github.com/jneen), and [Mary](http://github.com/stufflebear) (maintainers@mathquill.com) -Good news! We've resumed active development and we're committed to getting -things running smoothly. -Find a dusty corner? [Let us know.](https://github.com/mathquill/mathquill/issues) - MathQuill is a web formula editor designed to make typing math easy and beautiful. To view a demo, please view our [website](http://mathquill.com/). The MathQuill project is currently supported by its [partners](http://mathquill.com/partners.html). We are bound by a [Code of Conduct](http://mathquill.readthedocs.org/en/latest/Code_of_Conduct/). -We'd love to hear from you-we love offering help and receiving feedback. +MathQuill is actively developed and we're committed to getting +things running smoothly. Find a dusty corner? [Let us know.](https://github.com/mathquill/mathquill/issues) We'd love to hear from you. <big>[<img alt="slackin.mathquill.com" src="http://slackin.mathquill.com/badge.svg" align="top">](http://slackin.mathquill.com) [<img alt="freenode irc: #mathquill" src="https://img.shields.io/badge/%20freenode%20irc%20-%20%23mathquill%20-brightgreen.svg" align="top">](http://webchat.freenode.net/?channels=mathquill)</big> ## Getting Started -Check out our [Getting Started Guide](http://mathquill.readthedocs.org/en/latest/Getting_Started/) for instructions on how to get setup up with MathQuill and start using it. - -MathQuill has a simple interface: +MathQuill has a simple interface. This brief example creates a MathQuill element and renders, then reads a given input: ```javascript var htmlElement = document.getElementById('some_id'); var config = { @@ -30,6 +25,8 @@ console.log(mathField.latex()); // Shows '2^{\frac{3}{2}}' ``` +Check out our [Getting Started Guide](http://mathquill.readthedocs.org/en/latest/Getting_Started/) for setup instructions and basic MathQuill usage. + ## Open-Source License The Source Code Form of MathQuill is subject to the terms of the Mozilla Public
diff --git a/docs/Api_Methods.md b/docs/Api_Methods.md index a7625f3..2cd80d2 100644 --- a/docs/Api_Methods.md +++ b/docs/Api_Methods.md
@@ -6,9 +6,7 @@ var MQ = MathQuill.getInterface(2); ``` -MathQuill overwrites the global `MathQuill` variable when loaded. You can undo -that with `.noConflict()` (similar to [`jQuery.noConflict()`] -(http://api.jquery.com/jQuery.noConflict)): +MathQuill overwrites the global `MathQuill` variable when loaded. You can undo that with `.noConflict()` (similar to [`jQuery.noConflict()`](http://api.jquery.com/jQuery.noConflict)): ```html <script src="/path/to/first-mathquill.js"></script> @@ -22,9 +20,7 @@ </script> ``` -(Warning: This lets different copies of MathQuill each power their own - math fields, but using different copies on the same DOM element won't - work. Anyway, .noConflict() is primarily to help you reduce globals.) +(Warning: This lets different copies of MathQuill each power their own math fields, but using different copies on the same DOM element won't work. Anyway, .noConflict() is primarily to help you reduce globals.) # Constructors @@ -68,9 +64,7 @@ ``` ## Comparing IDs -API objects for the same MathQuill instance have the same `.id`, which will -always be a unique truthy primitive value that can be used as an object key -(like an ad hoc [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) or [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)): +API objects for the same MathQuill instance have the same `.id`, which will always be a unique truthy primitive value that can be used as an object key (like an ad hoc [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) or [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set)): ```js MQ(mathFieldSpan).id === mathField.id // => true @@ -82,8 +76,7 @@ ``` ## Data Object -Similarly, API objects for the same MathQuill instance share a `.data` object -(which can be used like an ad hoc [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) or [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet)): +Similarly, API objects for the same MathQuill instance share a `.data` object (which can be used like an ad hoc [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) or [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet)): ```js MQ(mathFieldSpan).data === mathField.data // => true @@ -109,9 +102,7 @@ ## reflow() -MathQuill uses computed dimensions, so if they change (because an element was -mathquill-ified before it was in the visible HTML DOM, or the font size -changed), then you'll need to tell MathQuill to recompute: +MathQuill uses computed dimensions, so if they change (because an element was mathquill-ified before it was in the visible HTML DOM, or the font size changed), then you'll need to tell MathQuill to recompute: ```js var mathFieldSpan = $('<span>\\sqrt{2}</span>'); @@ -122,19 +113,19 @@ ## el() -Returns the root HTML element. +Returns the root HTML element of the mathField. ## html() -Returns the contents of the MathField as static HTML +Returns the contents of the mathField as static HTML. ## latex() -Returns the contents as LaTeX +Returns the contents of the mathField as LaTeX. ## latex(latex_string) -This will render the argument as LaTeX +This will render the argument as LaTeX in the mathField. # Editable MathField Methods @@ -168,20 +159,22 @@ Selects the contents (just like [on `textarea`s](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48880622) and [on `input`s](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-34677168)). +To clear this selection, use [`clearSelection`](http://mathquill.readthedocs.org/en/latest/Api_Methods/#clearselection) + ## clearSelection() -Clears the current selection. +Clears the current selection in the mathField. ## moveToLeftEnd(), moveToRightEnd() -Move the cursor to the left/right end of the editable field, respectively. These are implemented in terms of [`moveToDirEnd`, shown below](). +Move the cursor to the left/right end of the editable field, respectively. These are implemented in terms of [`moveToDirEnd`](http://mathquill.readthedocs.org/en/latest/Api_Methods/#movetodirenddirection). ## movetoDirEnd(direction) -Moves the cursor to the end of the mathfield in the direction specified. The direction can be one of `MQ.L` or `MQ.R`. These are constants that obey the contract that `MQ.L === -MQ.R` and vice versa. This function may be easier to use than the functions above it if used in the [`moveOutOf` handler]() when setting the [configuration of a mathField](http://mathquill.readthedocs.org/en/latest/Config/#setting-configuration). +Moves the cursor to the end of the mathfield in the direction specified. The direction can be one of `MQ.L` or `MQ.R`. These are constants that obey the contract that `MQ.L === -MQ.R` and vice versa. This function may be easier to use than [moveToLeftEnd or moveToRightEnd](http://mathquill.readthedocs.org/en/latest/Api_Methods/#movetoleftend-movetorightend) if used in the [`moveOutOf` handler](http://mathquill.readthedocs.org/en/latest/Config/#outof-handlers) when setting the [configuration of a mathField](http://mathquill.readthedocs.org/en/latest/Config/#setting-configuration). ```javascript -var mathFieldConfig = { +var config = { handlers: { moveOutOf: function(direction, mathField) { mathField.movetoDirEnd(direction); @@ -200,14 +193,14 @@ ## typedText(text) -Simulates typing text, one character at a time. +Simulates typing text, one character at a time from where the cursor currently is. This is supposed to be identical to what would happen if a user were typing the text in. ```javascript // Types part of the demo from mathquill.com without delays between keystrokes mathField.typedText('x=-b\\pm \\sqrt b^2 -4ac'); ``` -## dropEmbedded(pageX, pageY, options) **[Experimental]()** +## dropEmbedded(pageX, pageY, options) **[Experimental](http://mathquill.readthedocs.org/en/latest/Api_Methods/#note-on-experimental-features)** Insert a custom embedded element at the given coordinates, where `options` is an object like: ```js @@ -218,10 +211,10 @@ } ``` -## registerEmbed('name', function(id){return options}) **[Experimental]()** +## registerEmbed('name', function(id){return options}) **[Experimental](http://mathquill.readthedocs.org/en/latest/Api_Methods/#note-on-experimental-features)** Allows MathQuill to parse custom embedded objects from latex, where `options` is an object like the one defined above in `.dropEmbedded`. This will parse the following latex into the embedded object you defined: `\embed{name}[id]}`. ## Note on Experimental Features -Methods marked as experimental may be altered drastically or removed in future versions. They may also receive less maintance than other non-experimental features. +Methods marked as experimental may be altered drastically or removed in future versions. They may also receive less maintenance than other non-experimental features.
diff --git a/docs/Config.md b/docs/Config.md index a8836b5..42d8424 100644 --- a/docs/Config.md +++ b/docs/Config.md
@@ -33,90 +33,44 @@ ## spacesBehavesLikeTab -If `spaceBehavesLikeTab` is true the keystrokes {Shift-,}Spacebar will behave -like {Shift-,}Tab escaping from the current block (as opposed to the default -behavior of inserting a Space character). +If `spaceBehavesLikeTab` is true the keystrokes {Shift-,}Spacebar will behave like {Shift-,}Tab escaping from the current block (as opposed to the default behavior of inserting a Space character). ## leftRightIntoCmdGoes -By default, the Left and Right keys move the cursor through all possible cursor -positions in a particular order: right into a fraction puts the cursor at the -left end of the numerator, right out of the numerator puts the cursor at the -left end of the denominator, right out of the denominator puts the cursor to the -right of the fraction; symmetrically, left into a fraction puts the cursor at -the right end of the denominator, etc. Note that right out of the numerator to -the left end of the denominator is actually leftwards (and downwards, it's -basically wrapped). If instead you want right to always go right, and left to -always go left, you can set `leftRightIntoCmdGoes` to `'up'` or `'down'` so that -left and right go up or down (respectively) into commands, e.g. `'up'` means -that left into a fraction goes up into the numerator, skipping the denominator; -symmetrically, right out of the numerator skips the denominator and puts the -cursor to the right of the fraction, which unlike the default behavior is -actually rightwards (the drawback is the denominator is always skipped, you -can't get to it with just Left and Right, you have to press Down); which is -the same behavior as the Desmos calculator. `'down'` instead means it is the -numerator that is always skipped, which is the same behavior as the Mac OS X -built-in app Grapher. +By default, the Left and Right keys move the cursor through all possible cursor positions in a particular order: right into a fraction puts the cursor at the left end of the numerator, right out of the numerator puts the cursor at the left end of the denominator, right out of the denominator puts the cursor to the +right of the fraction; symmetrically, left into a fraction puts the cursor at the right end of the denominator, etc. Note that right out of the numerator to the left end of the denominator is actually leftwards (and downwards, it's basically wrapped). If instead you want right to always go right, and left to always go left, you can set `leftRightIntoCmdGoes` to `'up'` or `'down'` so that left and right go up or down (respectively) into commands, e.g. `'up'` means that left into a fraction goes up into the numerator, skipping the denominator; symmetrically, right out of the numerator skips the denominator and puts the cursor to the right of the fraction, which unlike the default behavior is actually rightwards (the drawback is the denominator is always skipped, you can't get to it with just Left and Right, you have to press Down); which is the same behavior as the [Desmos calculator](https://www.desmos.com/calculator). `'down'` instead means it is the +numerator that is always skipped, which is the same behavior as the Mac OS X built-in app Grapher. ## restrictMismatchedBrackets -If `restrictMismatchedBrackets` is true then you can type [a,b) and [a,b), but -if you try typing `[x}` or `\langle x|`, you'll get `[{x}]` or -`\langle|x|\rangle` instead. This lets you type `(|x|+1)` normally; otherwise, -you'd get `\left( \right| x \left| + 1 \right)`. +If `restrictMismatchedBrackets` is true then you can type [a,b) and [a,b), but if you try typing `[x}` or `\langle x|`, you'll get `[{x}]` or `\langle|x|\rangle` instead. This lets you type `(|x|+1)` normally; otherwise, you'd get `\left( \right| x \left| + 1 \right)`. ## sumStartsWithNEquals -If `sumStartsWithNEquals` is true then when you type `\sum`, `\prod`, or -`\coprod`, the lower limit starts out with `n=`, e.g. you get the LaTeX -`\sum_{n=}^{ }`, rather than empty by default. +If `sumStartsWithNEquals` is true then when you type `\sum`, `\prod`, or `\coprod`, the lower limit starts out with `n=`, e.g. you get the LaTeX `\sum_{n=}^{ }`, rather than empty by default. ## supSubsRequireOperand -`supSubsRequireOperand` disables typing of superscripts and subscripts when -there's nothing to the left of the cursor to be exponentiated or subscripted. -Averts the especially confusing typo `x^^2`, which looks much like `x^2`. +`supSubsRequireOperand` disables typing of superscripts and subscripts when there's nothing to the left of the cursor to be exponentiated or subscripted. Averts the especially confusing typo `x^^2`, which looks much like `x^2`. ## charsThatBreakOutOfSupSub -`charsThatBreakOutOfSupSub` sets the chars that when typed, "break out" of -superscripts and subscripts: for example, typing `x^2n+y` normally results in -the LaTeX `x^{2n+y}`, you have to hit Down or Tab (or Space if -`spaceBehavesLikeTab` is true) to move the cursor out of the exponent and get -the LaTeX `x^{2n}+y`; this option makes `+` "break out" of the exponent and -type what you expect. Problem is, now you can't just type `x^n+m` to get the -LaTeX `x^{n+m}`, you have to type `x^(n+m` and delete the paren or something. -(Doesn't apply to the first character in a superscript or subscript, so typing +`charsThatBreakOutOfSupSub` sets the chars that when typed, "break out" of superscripts and subscripts: for example, typing `x^2n+y` normally results in the LaTeX `x^{2n+y}`, you have to hit Down or Tab (or Space if `spaceBehavesLikeTab` is true) to move the cursor out of the exponent and get +the LaTeX `x^{2n}+y`; this option makes `+` "break out" of the exponent and type what you expect. Problem is, now you can't just type `x^n+m` to get the LaTeX `x^{n+m}`, you have to type `x^(n+m` and delete the paren or something. (Doesn't apply to the first character in a superscript or subscript, so typing `x^-6` still results in `x^{-6}`.) ## autoCommands -`autoCommands`, a space-delimited list of LaTeX control words (no backslash, -letters only, min length 2), defines the (default empty) set of "auto-commands", -commands automatically rendered by just typing the letters without typing a -backslash first. +`autoCommands`, a space-delimited list of LaTeX control words (no backslash, letters only, min length 2), defines the (default empty) set of "auto-commands", commands automatically rendered by just typing the letters without typing a backslash first. ## autoOperatorNames -`autoOperatorNames`, a list of the same form (space-delimited letters-only each -length>=2), and overrides the set of operator names that automatically become -non-italicized when typing the letters without typing a backslash first, like -`sin`, `log`, etc. (Defaults to [the LaTeX built-in operator names](http://latex.wikia.com/wiki/List_of_LaTeX_symbols#Named_operators:_sin.2C_cos.2C_etc.), but -with additional trig operators like `sech`, `arcsec`, `arsinh`, etc.) +`autoOperatorNames`, a list of the same form (space-delimited letters-only each length>=2), and overrides the set of operator names that automatically become non-italicized when typing the letters without typing a backslash first, like `sin`, `log`, etc. (Defaults to [the LaTeX built-in operator names](http://latex.wikia.com/wiki/List_of_LaTeX_symbols#Named_operators:_sin.2C_cos.2C_etc.), but with additional trig operators like `sech`, `arcsec`, `arsinh`, etc.) ## substituteTextarea -`substituteTextarea`, a function that creates a focusable DOM element, called -when setting up a math field. It defaults to `<textarea autocorrect=off .../>`, -but for example, Desmos substitutes `<span tabindex=0></span>` on iOS to -suppress the built-in virtual keyboard in favor of a custom math keypad that -calls the MathQuill API. Unfortunately there's no universal [check for a virtual -keyboard](http://stackoverflow.com/q/2593139/362030), you can't even [detect a touchscreen](http://www.stucox.com/blog/you-cant-detect-a-touchscreen/) (notably -[Modernizr gave up](https://github.com/Modernizr/Modernizr/issues/548)) and even if you could, Windows 8 and ChromeOS -devices have both physical keyboards and touchscreens and you can connect -physical keyboards to iOS and Android devices with Bluetooth, so touchscreen != -virtual keyboard. Desmos currently sniffs the user agent for iOS, so Bluetooth -keyboards just don't work in Desmos on iOS, the tradeoffs are up to you. +`substituteTextarea`, a function that creates a focusable DOM element, called when setting up a math field. It defaults to `<textarea autocorrect=off .../>`, but for example, [Desmos](https://www.desmos.com/calculator) substitutes `<span tabindex=0></span>` on iOS to suppress the built-in virtual keyboard in favor of a custom math keypad that +calls the MathQuill API. Unfortunately there's no universal [check for a virtual keyboard](http://stackoverflow.com/q/2593139/362030), you can't even [detect a touchscreen](http://www.stucox.com/blog/you-cant-detect-a-touchscreen/) (notably [Modernizr gave up](https://github.com/Modernizr/Modernizr/issues/548)) and even if you could, Windows 8 and ChromeOS devices have both physical keyboards and touchscreens and you can connect physical keyboards to iOS and Android devices with Bluetooth, so touchscreen != virtual keyboard. Desmos currently sniffs the user agent for iOS, so Bluetooth keyboards just don't work in Desmos on iOS, the trade offs are up to you. # Handlers @@ -155,10 +109,9 @@ ## *OutOf handlers -moveOutOf(direction, mathField), deleteOutOf(direction, mathField), selectOutOf(direction, mathField), upOutOf(mathField), downOutOf(mathField) +`moveOutOf(direction, mathField)`, `deleteOutOf(direction, mathField)`, `selectOutOf(direction, mathField)`, `upOutOf(mathField)`, `downOutOf(mathField)` -The `*OutOf` handlers are called when Left/Right/Up/Down/Backspace/Del/Shift-Left/Shift-Right is pressed but the cursor is at the left/right/top/bottom edge and so nothing happens within the math field. For example, when the cursor is at the left edge, pressing the Left key causes the `moveOutOf` handler (if -provided) to be called with `MQ.L` and the math field API object as arguments, and Backspace causes `deleteOutOf` (if provided) to be called with `MQ.L` and the API object as arguments, etc. +The `*OutOf` handlers are called when Left/Right/Up/Down/Backspace/Del/Shift-Left/Shift-Right is pressed but the cursor is at the left/right/top/bottom edge and so nothing happens within the math field. For example, when the cursor is at the left edge, pressing the Left key causes the `moveOutOf` handler to be called with `MQ.L` and the math field API object as arguments, and Backspace causes `deleteOutOf` to be called with `MQ.L` and the API object as arguments, etc. ## enter(mathField) @@ -186,6 +139,6 @@ filter: progid:DXImageTransform.Microsoft.Chroma(color='black'); } -## Color Changes Support IE8 +## Color Change Support on IE8 To support a MathQuill editable background color other than white in IE8, set the background color on both the editable mathField and on elements with class `mq-matrixed`. Then set a Chroma filter on elements with class `mq-matrixed-container`.
diff --git a/docs/Getting_Started.md b/docs/Getting_Started.md index 21febd0..8d0d410 100644 --- a/docs/Getting_Started.md +++ b/docs/Getting_Started.md
@@ -1,6 +1,4 @@ -# Getting Started - -## Download and Load +# Download and Load Download [the latest release](https://github.com/mathquill/mathquill/releases/latest). MathQuill depends on [jQuery 1.4.3+](http://jquery.com) and we recommend that you use the [Google CDN-hosted copy](http://code.google.com/apis/libraries/devguide.html#jquery). @@ -19,38 +17,38 @@ All [API methods](http://mathquill.readthedocs.org/en/latest/Api_Methods/) will be called on `MQ`. -You can also [build from the source code](). +You can also [build from the source code](http://mathquill.readthedocs.org/en/latest/Contributing/#building-and-testing). -## Basic Usage +# Basic Usage -MathQuill instances can be created on DOM objects. For the full list of constructors and API methods, see [API Methods](http://mathquill.readthedocs.org/en/latest/Api_Methods). +MathQuill instances can be created on HTML elements. For the full list of constructors and API methods, see [API Methods](http://mathquill.readthedocs.org/en/latest/Api_Methods). The below examples assume that MathQuill has been properly loaded and exposed as `MQ` as shown [above](http://mathquill.readthedocs.org/en/latest/Getting_Started/#download-and-load). -### Render Static Math +## Render Static Math -Call `MQ.StaticMath` on the DOM object. +Call `MQ.StaticMath` on the HTML element. ```html <p>Solve <span id="problem">ax^2 + bx + c = 0</span></p> <script> - var problemSpan = document.getElementById('#problem'); + var problemSpan = document.getElementById('problem'); MQ.StaticMath(problemSpan); </script> ``` -### Editable Math +## Editable Math -To create an editable math field, call `MQ.MathField` with the dom object and the [config](http://mathquill.readthedocs.org/en/latest/Config/). The following example shows a mathfield created on the answer span with a handler to check the answer every time an edit may occur. +To create an editable math field, call `MQ.MathField` with the HTML element and the [config](http://mathquill.readthedocs.org/en/latest/Config/). The following example shows a mathfield created on the answer span with a handler to check the answer every time an edit may occur. ```html <p><span id="answer">x=</span></p> <script> - var answerDomObject = document.getElementById('#answer'); - var answerMathField = MQ.MathField(answerDomObject, { + var answerSpan = document.getElementById('answer'); + var answerMathField = MQ.MathField(answerSpan, { handlers: { edit: function() { - var enteredMath = answerMathField.latex() // Retreive entered math in LaTeX format + var enteredMath = answerMathField.latex() // Retrieve entered math in LaTeX format checkAnswer(enteredMath); } } @@ -58,4 +56,13 @@ </script> ``` -The recommended way to retrieve and store the contents of the math field is to call `mathField.latex()`. +## Get and Set Math + +The recommended way to retrieve and store the contents of the math field is to call `mathField.latex()`. `mathField.html()` can be used to retrieve the contents of the mathField as static HTML. + +A mathField will be initialized with the text that was in the span, interpreted as LaTex. This can be updated later by calling `mathField.latex(latexString)`. Content can be added as it would be by someone typing with [`typedText()`](http://mathquill.readthedocs.org/en/latest/Api_Methods/#typedtexttext), + +# Join the Community + +<big>[<img alt="slackin.mathquill.com" src="http://slackin.mathquill.com/badge.svg" align="top">](http://slackin.mathquill.com) +[<img alt="freenode irc: #mathquill" src="https://img.shields.io/badge/%20freenode%20irc%20-%20%23mathquill%20-brightgreen.svg" align="top">](http://webchat.freenode.net/?channels=mathquill)</big> \ No newline at end of file
diff --git a/docs/index.md b/docs/index.md index f7afc72..d91f8de 100644 --- a/docs/index.md +++ b/docs/index.md
@@ -2,22 +2,17 @@ by [Han](http://github.com/laughinghan), [Jeanine](http://github.com/jneen), and [Mary](http://github.com/stufflebear) (maintainers@mathquill.com) -Good news! We've resumed active development and we're committed to getting -things running smoothly. -Find a dusty corner? [Let us know.](https://github.com/mathquill/mathquill/issues) - MathQuill is a web formula editor designed to make typing math easy and beautiful. To view a demo, please view our [website](http://mathquill.com/). The MathQuill project is currently supported by its [partners](http://mathquill.com/partners.html). We are bound by a [Code of Conduct](http://mathquill.readthedocs.org/en/latest/Code_of_Conduct/). -We'd love to hear from you-we love offering help and receiving feedback. +MathQuill is actively developed and we're committed to getting +things running smoothly. Find a dusty corner? [Let us know.](https://github.com/mathquill/mathquill/issues) We'd love to hear from you. <big>[<img alt="slackin.mathquill.com" src="http://slackin.mathquill.com/badge.svg" align="top">](http://slackin.mathquill.com) [<img alt="freenode irc: #mathquill" src="https://img.shields.io/badge/%20freenode%20irc%20-%20%23mathquill%20-brightgreen.svg" align="top">](http://webchat.freenode.net/?channels=mathquill)</big> ## Getting Started -Check out our [Getting Started Guide](http://mathquill.readthedocs.org/en/latest/Getting_Started/) for instructions on how to get setup up with MathQuill and start using it. - -MathQuill has a simple interface: +MathQuill has a simple interface. This brief example creates a MathQuill element and renders, then reads a given input: ```javascript var htmlElement = document.getElementById('some_id'); var config = { @@ -30,6 +25,8 @@ console.log(mathField.latex()); // Shows '2^{\frac{3}{2}}' ``` +Check out our [Getting Started Guide](http://mathquill.readthedocs.org/en/latest/Getting_Started/) for setup instructions and basic MathQuill usage. + ## Open-Source License The Source Code Form of MathQuill is subject to the terms of the Mozilla Public