Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48955

Mathjax texfiltercompatibility option does not work with $$

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Enable MathJax filter. Set all settings to default.
      2. Create page resource. Insert some text with equations.
      Example1: $$a$$ and $$2b$$ and [x] and [2y]
      3. Preview page, and see, that each equation is placed on new line.
      4. Enable texfiltercompatibility in mathjax settings.
      5. See, that there are problems with equations in $$, while [] equations are inline, as expected.
      6. Apply patch.
      7. Check that all equations are inline.
      8. Check than <tex> and [tex] tags also works as expected.
      Example2 (insert in HTML editor): <p>$$a$$ and $$2b$$ and [x] and [2y] and <tex>\alpha</tex> and <tex>2\beta</tex> and [tex]\Sigma[/tex] and [tex]2\Omega[/tex]</p>

      Show
      1. Enable MathJax filter. Set all settings to default. 2. Create page resource. Insert some text with equations. Example1: $$a$$ and $$2b$$ and [x] and [2y] 3. Preview page, and see, that each equation is placed on new line. 4. Enable texfiltercompatibility in mathjax settings. 5. See, that there are problems with equations in $$, while [] equations are inline, as expected. 6. Apply patch. 7. Check that all equations are inline. 8. Check than <tex> and [tex] tags also works as expected. Example2 (insert in HTML editor): <p>$$a$$ and $$2b$$ and [x] and [2y] and <tex>\alpha</tex> and <tex>2\beta</tex> and [tex] \Sigma [/tex] and [tex] 2\Omega [/tex] </p>
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Mathjax filter introduces texfiltercompatibility to show all equations inline like does TeX filter, but it does not work when equations are inside $$ signs.
      The regexp, replacing $$ to ( and ) is incorrect.

        Attachments

          Activity

            People

            Assignee:
            vadimon Vadim Dvorovenko
            Reporter:
            vadimon Vadim Dvorovenko
            Peer reviewer:
            Damyon Wiese
            Integrator:
            Dan Poltawski
            Tester:
            Adrian Greeve
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/15