MathJax error when editing Lessons short question

Description

In Lessons short question, if you have an MathJax equation:

sin�≈� from: [ \sin\theta\approx\theta ]

When you try to edit the equation, the edit box shows:

sin�≈� \sin\theta\approx\theta

which is incorrect.

Further feedback: This means "that delimiters have to be re-entered manually. This can become quite time-consuming when entering longer expressions, and especially if multiple edits need to be made."

Attachments

7
  • 09 Dec 2020, 04:55 PM
  • 10 Nov 2020, 11:29 AM
  • 10 Nov 2020, 10:24 AM
  • 10 Nov 2020, 10:17 AM
  • 18 May 2020, 03:44 PM
  • 18 May 2020, 03:38 PM
  • 18 May 2020, 03:33 PM

Activity

Andrea Schmidt December 9, 2020 at 4:54 PM

Verified on 20x: https://qa20-mysql.nightly.sakaiproject.org/, build: fc3c08ab 

Molly Kelsey November 10, 2020 at 12:30 PM

 it was the wrong delimiters! I looked in the Help docs and it says {} instead of $$ for wrapping the text. The test plan here had []. Marking as verified, looks like it's all good!

Brian J. November 10, 2020 at 11:28 AM
Edited

, I'm not able to reproduce your issue. I tested on nightly master MySQL, and nightly 21.x MySQL, I was able to complete the test plan successfully for both. Here are the steps I took:

  • go to site

  • add lessons tool, enable mathjax

  • go to lessons

  • add question (short answer)

  • for the "Question Text", I used the following formula:

    $$\sigma = \sqrt{ \frac{1}{N} \sum_{i=1}^N (x_i -\mu)^2}$$
  • "Save"

  • Verify the formula renders

  • Edit the question

  • Verify the formula in the "Question Text" field remains unchanged

  • "Update Item"

  • Verify again that the formula renders correctly

The specific formula you use shouldn't matter, but the delimiters used do. Also, make sure your browser isn't blocking anything. I believe the nightly servers are configured to use MathJax source code hosted by Cloudfare, rather than having the resources locally.

Molly Kelsey November 10, 2020 at 10:24 AM

Hi , I just tested on 21.x and 12.x but am still seeing a version of the issue. Is there another place I should test? I have MathJax enabled

Brian J. November 10, 2020 at 9:23 AM

Assigning to Molly for testing.

Fixed

Details

Priority

Fix versions

Components

Assignee

Reporter

Created May 18, 2020 at 3:44 PM
Updated December 9, 2020 at 4:55 PM
Resolved September 2, 2020 at 12:49 PM

Flag notifications