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.

render(){
  var txt=this.props.optionBData;
  if(txt){
    var math = katex.renderToString(txt, {
      throwOnError: true,      
   });  
  }
  return(<span className="renderEQ" dangerouslySetInnerHTML={{ __html: 
   (this.props.data).replace("[EQB]",math)}}></span>);
  }

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