yzane / vscode-markdown-pdf

Markdown converter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf
Other
1.01k stars 206 forks source link

What am I missing? It doesn't convert math formula embedded at all. #355

Open kundeng opened 8 months ago

upyesp commented 8 months ago

Thatis right, it doesn't support rendering math formula. Therte's no suppoprt for Tex, Latex, Katex, MathJax.

If you want to convert Markdown with math formatting to PDF, try Pandoc.

https://pandoc.org/

vinlin24 commented 7 months ago

See #21. You can append this <script> to your Markdown document. When it exports, the LaTeX should be rendered properly.

<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>
ruiyuanlu commented 7 months ago

See #21. You can append this <script> to your Markdown document. When it exports, the LaTeX should be rendered properly.

<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>

Nice fix thx. But it does work in private net. Any offline alternatives available?