As part of a math project, I need to display the solution of a problem in a Sweetalert2 modal. However, despite using the following code:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']]
},
"HTML-CSS": {
linebreaks: { automatic: true }
},
SVG: {
linebreaks: { automatic: true }
}
});
</script>
the automatic line break feature is not functioning properly within the Sweetalert2 modal (refer to the image). Is there any solution for this issue?
Best regards, Leon