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

Allow "Mathjax" and "Display emoticons as images" filter together, have "y(n)" not breaking

    Details

    • Type: Bug
    • Status: Waiting for integration review
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.6, 3.4.3, 3.5
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:

      Description

      When both "Mathjax" and "Display emoticons as images" filter are activated, some Mathjax expressions do break, because they are processed by the "Display emoticons as images" filter later on. The one mentioned in this issue's title is an example.

      Steps to replicate:

      • Enable "Mathjax" and "Display emoticons as images" filter to your page, in "Manage filters" admin/filters.php having them apply to content, place the "Display emoticons as images" filter under the "Mathjax" filter.
      • Go to a course.
      • Insert a label, fill it with an

        y(n)


        expression

        \( y(n) \)

        .

      • Insert a label, fill it with an

        y(t)


        expression

        \( y(t) \)

        .

      • Note that the

        y(n)


        expression is breaking since the

        (n)

        is displayed as a "thumb down" emoticon. The y(t) though, converts correctly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: