ReactJS: Render Math Equation's svg in pdf


jhgjbjm I am trying to render pdf from html code (which includes svg of math equations) using reactJS technology. I was tried to use MathJax but it didn’t work for me. Then, I have used katex to edit and render equations in html, successfully.

  var txt=this.props.optionBData;
    var math = katex.renderToString(txt, {
      throwOnError: true,      
  return(<span className="renderEQ" dangerouslySetInnerHTML={{ __html: 

But I am not able to render that equations in pdf using jsPdf.