I need to parse <math>
tag to $
and <math display ="block">
to $$
using wiky.js. This javascript is mainly using regex to do that.
For eg :
<math> x^2 + 1 = 0 </math>
becomes: $ x^2 + 1 = 0 $.
And <math display="block"> x^2 + 1 = 0 </math>
becomes: $$ x^2 + 1 = 0 $$
$1$
` – Srijan Agarwal Jul 16 '16 at 12:02