MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

svg - unexpected \sqrt translated

Open chenxia25 opened this issue 2 years ago • 3 comments

Issue Summary

In $\sqrt[a]{b}$, display error will occur when length of a is at least 3. This only happens when using svg-output.

Steps to Reproduce:

  1. Create a file a.html with the following content
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <p>$a = a = \sqrt{n} = b$</p>
    <p>$a = a = \sqrt[n]{n} = b$</p>
    <p>$a = a = \sqrt[nn]{n} = b$</p>
    <p>$a = a = \sqrt[nnn]{n} = b$</p>
    <p>$a = a = \sqrt[nnnn]{n} = b$</p>
    <p>$a = a = \sqrt[nnnnnnnnnnnnnnnn]{n} = b$</p>

    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$']]
        },
      };
    </script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/es5/tex-svg.js" defer></script>
  </body>
</html>
  1. Open it in any browser

Technical details:

  • MathJax Version: 3.2.2
  • MathJax Render: SVG
  • Client OS: Windows 11
  • Browser: Microsoft Edge 117.0.2045.60

Supporting information:

a.png

chenxia25 avatar Oct 21 '23 02:10 chenxia25

This was fixed in v4.

pkra avatar Oct 26 '23 08:10 pkra

Note that v4 is out in beta release, so it will be fixed officially when the v4.0 final release is made.

dpvc avatar Oct 31 '23 13:10 dpvc

Also, this is a duplicate of #2923 and #2984

dpvc avatar Oct 31 '23 13:10 dpvc