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

LaTeX not displaying in core H5P (Accordion) activity on Moodle Mobile App

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.4
    • Fix Version/s: None
    • Component/s: H5P
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE
    • Sprint:
      Moodle App 3.9.5

      Description

      When displaying an a core (mod_h5pactivity) H5P Accordion activity containing LaTeX markup, the formatted LaTeX displays correctly in desktop view with MathJax filter enabled, but in the Moodle Mobile App it only displays the markup, not the properly formatted LaTeX symbols.

      (NOTE: Conversely, the non-core mod_hvp activity does display the properly formatted LaTeX symbols in the Moodle Mobile App.)

      REPRODUCTION STEPS:

      1. Create an H5P object using an H5P Editor (e.g. using the mod_hvp editor) and save the H5P object.
        1. Ensure the H5P Accordion activity is used.
        2. Enter some LaTeX markup in the Text field.
      2. Create a core H5P Activity (i.e. mod_h5pactivity) and use the H5P object you've created.
      3. Save and display the activity on desktop view.
      4. Ensure the formula is displayed properly as LaTeX symbols.
      5. View the same activity in Moodle Mobile App.
      6. Ensure the formula is displayed properly as LaTeX symbols.

       

      Example markup:

       \( f(x) = \frac{A_0}{2} + \sum \limits_{n=1}^{\infty} A_n \cos \left( \frac{2 n \pi x}{\nu} - \alpha_n \right) \)

       EXPECTED RESULT:

      For steps (4) and (6), it is expected that the proper formula displays as LaTeX symbols in both desktop and mobile.

      ACTUAL ISSUE:

      Step (6) instead displays the unformatted markup, instead of LaTeX symbols.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            james_w James Williams
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: