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

MathJax filter prevents autolinking in labels and activity descriptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.6, 3.1.2
    • 3.0.1
    • Filters
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-55007-master
    • 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

      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.

            dthies Daniel Thies
            dthies Daniel Thies
            David Monllaó David Monllaó
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.