mehdisadeghi / react-mathjax-preview

The MathJax React component you were looking for.
https://mehdisadeghi.github.io/react-mathjax-preview/
MIT License
49 stars 30 forks source link

MathJax Has Lots of delays #72

Open yeganehaym opened 3 years ago

yeganehaym commented 3 years ago

I have some lines and formulas but it takes long time to convert to formula like 20 seconds

this is the code

 questions.map((question,index)=>(
                            <div key={index}>

                                    <h3>{index+1}- <MathJax sanitizeOptions={ {USE_PROFILES: {html: true,mathMl: true}}} style={{'display':'inline-block'}} math={question.title}  /></h3>
                                    <ul>
                                        {
                                            question.options.map(option=>(
                                                <li key={option.value} > <MathJax sanitizeOptions={ {USE_PROFILES: {html: true,mathMl: true}}} style={{'display':'inline-block'}}  math={option.label} /></li>
                                            ))
                                        }
                                    </ul>

                            </div>
                        ))