Commit Graph

3 Commits

Author SHA1 Message Date
Landon Wilkins d198a52517 da licença part 31
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: I7b353d1ec31c36c0b12df7feb09fff743dc8a985
Reviewed-on: https://gerrit.instructure.com/110056
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 21:59:58 +00:00
John Corrigan 196594edb6 don't try to convert nil or blank values to MathML
fixes CNVS-32667

test plan:
- Have piece of content with a formula as part of its body. Make sure
  that formula has a blank alt tag.
- Make sure that mathman is being used for svg & mml generation.
- View the content in the browser.
- Observe that mml requset is never made to MathMan.

Change-Id: Id5b1a28ab91c17400d92a83f2b02ae014341ae19
Reviewed-on: https://gerrit.instructure.com/92903
Tested-by: Jenkins
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: John Corrigan <jcorrigan@instructure.com>
2016-10-17 19:21:07 +00:00
John Corrigan c9e0fa96a3 enable use of MathMan for latex => mathml conversion
fixes CNVS-59514

Also adds a MathMan module that wraps some convenience methods for 1-
figuring out if it's ok to use mathman; 2- constructing urls for hitting
mathman's endpoints.

test plan:

*With Ritex*

- Add an assignment (or some type of content with a description editable
  via tinymce / rcs).
- Update the description to include a latex equation using the equation
  editor.
- Upon saving the assignment, observe that an image of the equation is
  visible.
- Using the browser's elemnt / DOM inspector, select the equation image,
  and observe that there is a hidden span that contain a math ml
  representation.

*With Mathman*

- Navigate to an account's plugin page, and select the MathMan plugin.
- On the edit screen, enable the plugin, and provide a working mathman
  base url and check the 'Use for mml' checkbox. Save the changes.
- Add an assignment (or some type of content with a description editable
  via tinymce / rcs).
- Update the description to include a latex equation using the equation
  editor.
- Upon saving the assignment, observe that an image of the equation is
  visible.
- Using the browser's elemnt / DOM inspector, select the equation image,
  and observe that there is a hidden span that contain a math ml
  representation.

Change-Id: I194d155b339123f7ed1948cf29070c1d17fc7f17
Reviewed-on: https://gerrit.instructure.com/84031
Tested-by: Jenkins
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Product-Review: John Corrigan <jcorrigan@instructure.com>
2016-08-05 15:31:23 +00:00