Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4235

Tex formulas not working properly in H5P if only some formats are used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.1.1
    • 4.1.0
    • H5P
    • Hide

      This issue only needs to be tested in 1 device.

      1. Open the H5P package specified in a restricted comment.
      2. Check that the equations are rendered properly.
      Show
      This issue only needs to be tested in 1 device. Open the H5P package specified in a restricted comment. Check that the equations are rendered properly.
    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • Moodle App 4.1.1

      The string regular expression used by MathDisplay library is designed for PHP, so it contains starting and ending slashes:

      "/\$\$.\$\$|\\\[.\\\]|\\\(.+\\\)/"

      In Javascript, string regular expressions shouldn't have those slashes. This means that the app is not checking properly the formats using "$$" and "(" because it also tries to find a "/" in there. If there is no match, the MathDisplay library isn't loaded and Tex formular aren't displayed properly.

            dpalou Dani Palou
            dpalou Dani Palou
            Noel De Martin Noel De Martin
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.