Skip to main content

\newcommand

Completed

Comments

5 comments

  • Fletcher Penney

    Yes -- MathJax is certainly more feature complete than KaTeX from what I have seen, with one key exception for the majority of users.  KaTeX (at least the last times I have tried to compare the two) supports "updating" the HTML and the formatted math, whereas MathJax requires reloading the page in order to reformat everything.

     

    Regardless, MultiMarkdown Composer and nvUltra both support KaTeX *and* MathJax, as well as any other javascript you want to run.

    0
  • David Loeffler

    There are two issues I have with MathJax support:

    1. It does not support version 3 which seems much faster. I am still trying to figure out how other markdown apps work with it. One seems to put all equations in SVG. Don't know yet the advantages.

    2. I have to do one or two Refreshes to get your app to display the math.

    0
  • Fletcher Penney

    1. You can use whatever version of whatever software you want.  Neither Composer nor nvUltra restrict anything you put in your HTML.

    2. As per other threads, to the best of my ability to dig into this, these are problems with MathJax, esp v3 (though several of the issues you have reported, as also mentioned previously, I have been unable to replicate across multiple attempts).  I can't support issues with MathJax, or any other code that I didn't write.

    All that my software does is automatically insert the `<script>` header info for MathJax/KaTeX/highlight.js as a time saver, but it doesn't work any differently than inserting it in your document manually to allow you to specify any desired version/software. Then, the Preview preferences allow you to choose to reload the HTML instead of updating it (equivalent to reloading a page in a browser).

    The only other thing that happens is that a helper javasscript runs `renderMathInElement` for KaTeX on a refresh, along with a couple of other things that Brett needs (but if I remember correctly, this was not strictly necessary for KaTeX, which I had used in older versions of Composer).

    As I've written before, I am always happy to try and find/fix bugs in my software.  And I will continue to try and replicate specific bugs that you identify with MathJax.  But the reality is that the "support" for MathJax is basically to link to it, just like any other web page, and beyond that MathJax is responsible for doing its thing.  There's a limited number of ways that I can screw this up, and thus far I have been able to find one. (EDIT: Unable to find any that have not previously been fixed.)

    0
  • Fletcher Penney

    <Also -- if MathJax v3 becomes stable enough for general use, I am happy to add that as a default option in the preferences.  The last time I checked, it was not usable for this type of application (a live preview), but that was probably a couple of years ago now.>

    0
  • Fletcher Penney

    Another also -- one more potential point of failure, of course, is WebKit itself.  But since I believe that Safari is effectively a wrapper around WebKit, anything that works in Safari should *generally* work in nvUltra/Composer's preview.

    0

Please sign in to leave a comment.

Powered by Zendesk