No internet connection
  1. Home
  2. Support

Make mathjax work in abstracts of questions

By Michael S @michaelS
    2020-03-14 18:04:14.027Z2020-03-14 22:55:35.276Z

    I activated mathjax for questions and answers by adding the following lines to the Scripts HTML Section in the Admin Panel:

    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"] ],
          processEscapes: true
        }
      });
    </script>
    
    
    <script type="text/javascript" async
      src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML">
    </script>
    <script>
    talkyard.postElemPostProcessor = function(elem) {
      console.log('Telling MathJax to post process elem: ' + elem);
      MathJax.Hub.Queue(["Typeset", MathJax.Hub, elem]);
    };
    </script>
    

    However this doesn't seem to work for the abstracts of the questions in the overview list. So how can I make it work there as well?

    Solved in post #2, click to view
    • 2 replies
    1. the abstracts of the questions in the overview list

      That's the forum topic list / question list? In this forum, it'd be this page?: https://www.talkyard.io/forum/latest/support

      This has not yet been implemented, actually. Right now, the text on those question-overview / forum-topics pages, are just plain text.

      ReplySolution
      1. MMichael S @michaelS
          2020-03-14 23:43:44.681Z

          I noticed that it works if I reload the topic/question list in my browser.