vscode-markdown-pdf icon indicating copy to clipboard operation
vscode-markdown-pdf copied to clipboard

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

Open kundeng opened this issue 1 year ago • 3 comments

kundeng avatar Mar 06 '24 18:03 kundeng

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/

upyesp avatar Mar 09 '24 16:03 upyesp

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>

vinlin24 avatar Apr 05 '24 22:04 vinlin24

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?

ruiyuanlu avatar Apr 19 '24 01:04 ruiyuanlu