canvas-lms/public
Clay Diffrient f0988890e6 Enhance MathJax for discussions
This commit makes things with MathJax work a bit better overall
and offers a few key changes.

We no longer will load MathJax when there is a hidden <math>
tag on the page.  It only loads if a <math> tag is explicitly
visible.

We also load a combined TeX/MML config so that if there is MML
on the page explicitly and the Advanced Equation Editor opens
it handles all the cases.  This was really prevalent potentially
with discussion posts/replies.

Finally, when we explicitly request to load MathML we now always
call the callback if present to make sure any hooks get put in, but
we also tell the existing MathJax instance to reprocess the page
to handle any newly added areas that it needs to handle.

closes CORE-1597
closes CORE-1402

Test Plan:
  - Go to a discussion post and do the following:
     - Use the advanced equation editor (AEE) to put something in the
       description.
     - Post a reply to that using the AEE.  It should work.
     - Explictly use the HTML editor to put MathML code into the
       description or a post.
     - Open the AEE and insert something.
     - It likewise should work :)

Change-Id: I934047c7c6760166d9cdcc495fa96fb3185aa9a8
Reviewed-on: https://gerrit.instructure.com/165453
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2018-10-05 06:42:05 +00:00
..
file_removed Fix typo in public/file_removed/file_removed.pdf 2018-04-05 16:54:38 +00:00
fonts Use ui-icons instead of inst-icons for icon font 2018-05-29 20:57:04 +00:00
images Display billboard when first customizing ratings 2018-06-14 15:33:40 +00:00
javascripts Enhance MathJax for discussions 2018-10-05 06:42:05 +00:00
media_record switch to the speex codec for the flash recording widget 2015-04-23 16:36:30 +00:00
partials UI created for Course Visibility Settings 2016-08-23 15:35:09 +00:00
web-app-manifest use the official android way of doing app install banners 2016-10-28 21:13:46 +00:00
422.html Initial commit. 2011-01-31 18:57:29 -07:00
500.html replace all .button(s) with .btn 2012-11-14 13:29:30 -07:00
_crossdomain.xml non-flash direct-to-s3 changes 2011-02-11 10:49:53 -07:00
apple-touch-icon.png ThemeEditor: fix 404 to default preview images 2015-08-05 22:52:58 +00:00
dimdim_welcome.html Initial commit. 2011-01-31 18:57:29 -07:00
drawing.html Initial commit. 2011-01-31 18:57:29 -07:00
enable-javascript.html change name of javascript-is-required.html to enable-javascript.html. 2012-02-16 14:28:30 -07:00
equella_cancel.html Initial commit. 2011-01-31 18:57:29 -07:00
equella_success.html Initial commit. 2011-01-31 18:57:29 -07:00
favicon.ico provide high-res, color-coded favicons 2014-06-13 22:03:14 +00:00
ie-9-is-not-supported.html send ie9 to the "not supported" page we send ie8 to 2016-05-06 19:28:52 +00:00
loading_submission.html Initial commit. 2011-01-31 18:57:29 -07:00
robots.txt Initial commit. 2011-01-31 18:57:29 -07:00
simple_response.json Initial commit. 2011-01-31 18:57:29 -07:00