Mathjax support

As I mentioned in previous post, It would be cool if Mathjax is supported.
Mathjax is a js library for (la)tex rendering in browsers, there’s a wide range of use among academic people, engineers/programmers. Combining math formulas with Kinopio would be great for better math understanding.

It could be done with include Mathjax js library in the webpage or choosing server-side rendering. I know it actually involves many factors, server load, page loading speed, extra maintains, and server cost, so follow your roadmap, and if there is any chance to get it supported I’d appreciate it very much.

For the use case, please take a look at here.



Thank you, this is super informative :smiley:

1 Like

Sorry to bump up this thread again, I have figured out a way to display math by userscript, hope it could help someone

// ==UserScript==
// @name       MathJax for
// @namespace
// @version    0.1.1
// @license MIT
// @description Enables MathJax on
// @match*
// @copyright
// @namespace
// ==/UserScript==
if (window.MathJax === undefined) {
    window.MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      svg: {
        fontCache: 'global'
      startup: {
        ready: function() {
          console.log('MathJax is loaded, but not yet initialized');
          MathJax.typeset(document.querySelectorAll(".markdown span"));
          console.log('MathJax is initialized, and the initial typeset is queued');
    var polyfill_src = "";
    var mathjax_src = "";
    var insert_script = function(src){
      var script = document.createElement("script");
      script.type = "text/javascript";
      // script.src = "";    
      //script.src = "";
      script.src = src;
      script.async = true;
    document.addEventListener('keyup', function(){
      MathJax.typeset(MathJax.typeset(document.querySelectorAll(".markdown span")));


this is :fire:. there are a lot of interesting things you could do with this kind of mechanism beyond Mathjax, too :slight_smile:

this is also a good example of something that would make a good widget/plugin for the future :wink:


How would this work on desktop app? There is no browser monkey. Also Katex might be faster than mathjax.

1 Like

Like Roam has roam/js, we should have something similar if we go down this route.


1 Like

may be relevant: What would be your dream add-ons/power-ups/integrations?

1 Like

Just wanted to add that I am a fan of KaTeX. My impression is that it’s not quite as full-featured as mathjax but doesn’t have the annoying FOUC that happens with mathjax. (I also find the context menu that comes up with mathjax a bit visually jarring.)

I’m not sure whether rendering cards in kinopio happens server-side or what, but it’d be theoretically possible to run KaTeX in node on the server, which would likely load faster for clients.