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

MathJax filter prevents autolinking in labels and activity descriptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Filters
    • Labels:
    • Testing Instructions:
      Hide
      1. Add glossary with an autolinking term which is a TeX word (log: a hunk of wood).
      2. Create a label with a TeX expression with backslash log in it and the word log outside delimiters. Include inline and displaystyle delimiters.
      3. Add same text to the glossary descriptiion and check show descritption
      4. Enable glossary and MathJax filters.
      5. Verify TeX displays correctly and term autolinks outside expression on course page
      6. Repeat with TeX filter enabled and verify behaviour is consistent
      Show
      Add glossary with an autolinking term which is a TeX word (log: a hunk of wood). Create a label with a TeX expression with backslash log in it and the word log outside delimiters. Include inline and displaystyle delimiters. Add same text to the glossary descriptiion and check show descritption Enable glossary and MathJax filters. Verify TeX displays correctly and term autolinks outside expression on course page Repeat with TeX filter enabled and verify behaviour is consistent
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55007-master

      Description

      The MathJaxloader filter adds a span with class nolink around all of the text passed to the filter in order to prevent the autolinking filters from breaking TeX expressions before MathJax is able to render them. This prevents any links on the course page or in activitites where mathematics is also present.
      To reproduce

      1. Create a glossary with autolinking entry
      2. Create a label contain the term and a TeX expression
      3. Enable glossary autolink and MathJax filters
      4. View label where term should be linked to glossary and is not
      5. Repeat with TeX notation filter and term will be linked.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16