News for hackers. Stuff that matters.
Re:Show HN: Discover the World of Mathematics by yori on Tuesday February 11, 2020 @05:28AM (#22297412)
Are you using MathJax to display the equations? Why do I not get the MathJax context menu when I right-click on the equations?
Re:Show HN: Discover the World of Mathematics by mkl on Tuesday February 11, 2020 @07:19AM (#22297874)
It's using Katex, which is smaller and faster: https://katex.org/
Re:Show HN: Discover the World of Mathematics by CatsAreCool on Wednesday February 12, 2020 @10:09PM (#22315021)
Yes, I'm using katex because I found the API easier to work with.
Re:Show HN: Discover the World of Mathematics by yori on Wednesday February 12, 2020 @11:57PM (#22315424)
Are you rendering the LaTeX on server-side or on client-side using JavaScript? I am asking these questions because I find MathJax code in your website:

  <script type="text/plain" cookie-consent="strictly-necessary">
    window.MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      },
      svg: {
        fontCache: 'global'
      }
    };
  </script>
  <script type="text/javascript" id="MathJax-script" async
    src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
  </script>
Re:Show HN: Discover the World of Mathematics by CatsAreCool on Thursday February 13, 2020 @12:46AM (#22315581)
Actually, that code should be deleted. At one time, I was experimenting with MathJax but don't use it anymore.