Skip to main content
8 of 29
Add proposal to improve editing

Feature requests

Know a fix that should be included in SOUP (or an issue that could be fixed)? List it here.

Scheduled for next release

These fixes have been added to the v1.3 development branch, and will be included in SOUP v1.4:

Possible additions

These issues might be fixed in a future release, but need some work first:

Declined:

These issues are out of scope for SOUP, or cannot be easily fixed:

Proposed:

Feel free to add new proposals here.

I propose adding a MathJax hook that does two things:

  1. Reset the equation numbers and labels, so that when editing a post that has a labeled equation, you don't fall prey to the multiply defined label problem (where the math is no longer displayed because of the error).
  2. Temporarily disable the noErrors extension so that (when editing a post) you will see the actual error messages rather than just the TeX code in a block. (But only when editing a post, not when they are being displayed otherwise.)

To do this, I recommend adding the following:

 MathJax.Hub.Register.MessageHook("Begin Process",function (message) {
   if (message[1].id && message[1].id.match(/^wmd-preview/)) {
      MathJax.InputJax.TeX.resetEquationNumbers();
      MathJax.Hub.Config({TeX:{noErrors:{disabled:true}}});
    }
  });
  MathJax.Hub.Register.MessageHook("End Process",function (message) {
    if (message[1].id && message[1].id.match(/^wmd-preview/)) {
      MathJax.Hub.Config({TeX:{noError:{disabled:false}}});
    }
  });

This operates only when the math being typeset is in a Markdown preview window, and the noErrors extension is turned back on when the typesetting is done.

Ilmari Karonen
  • 1.4k
  • 10
  • 18