When I comment mathematics equations, they are not rendered as soon as I comment..
I have to reload the page to render it.
Please let me know which plugin you use for mathematics equations? Is this plugin compatible with comment system?
I'm using this script from Mathjax Docs, no plugins.
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: {
inlineMath: [['[math]','[/math]'],['$latex','$'], ['\\(','\\)']],
displayMath: [ ['$$','$$'], ['\[','\]'] ],
processEscapes: true, // \$ to write regular dollar sign.
processRefs: true, // process \ref{...} outside of math mode.
ignoreClass: "latex-ignore",
skipTags: ["pre","code"],
},
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
No plugin let me surpass the <code> tag. They even render the math formulas between <code> tag. So, I have to use script with line
skipTags: ["pre","code"],
to display formulas in my post as example.
However, plugins work well in rendering math as soon as someone comments.
Any help?
Hi cnpatel,
I'm really sorry, but this cannot be configured by wpDiscuz side. You should find a way to make the lib (that you are loading) working runtime. Now it doesn't work runtime, therefore it renders after refreshing.