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

Mathjax texfiltercompatibility option does not work with $$

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • 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>

    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

            vadimon Vadim Dvorovenko
            vadimon Vadim Dvorovenko
            Damyon Wiese Damyon Wiese
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Mar/15