I know that in vs code, markdownpdf extension can export md into pdf, but this extension is unable to convert latex correctly. A common way is to add the code below at the beginning of the md.
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: {inlineMath: [['$', '$']]}, messageStyle: "none" });
</script>
This method partly solve the problem. But it still can not correctly convert those environment which includes "\\" grammar like array, eqnarray. So those equations with matrix can not be converted correctly.
I would like to ask how to solve this problem.