I
I
ivkol2015-01-19 22:55:52
JavaScript
ivkol, 2015-01-19 22:55:52

How to display LaTeX formula if ajax appears?

Hello.
There is a plugin in which, on a user click (the button is in the record), the text with the Latex formula is loaded from the database into the record near the button. To display Latex, I use the LaTeX for WordPress plugin with MathJax CDN, Google Charts settings. The LaTex code is inserted into the entry like this: \(x+\sqrt{3}\) - this is if through the editor. But through ajax exactly this is displayed without converting to a formula. Question: in what form to store the formula in the database and how to ensure that the formula is transformed into the desired form, and not displayed as is. Any ideas, even if not sure. It seems that we need to force the post text to be processed again by the plugin that is responsible for latex. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2015-01-19
@RGV

khan.github.io/KaTeX
Option?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question