欢迎访问个人网络日志🌹🌹知行空间🌹🌹
Problem Description

Markdown pdf plugin support to convert markdown file to multitype files, such as png, pdf and html. However, it was found that it can export latex math format correctly.
Solution
As the advice provided in the github issues of Markdown pdf Plugin project, some correction should be made in the template.html file of this plugin. Firstly, find the template.html of the plugin, it is generally located in the home directory, like the following example,
/home/lx/.vscode/extensions/yzane.markdown-pdf-1.4.4/template/template.html
add the next two lines to the template.html,
<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

MarkdownPDF插件在转换Markdown文件为PNG、PDF或HTML时发现无法正确导出LaTeX数学格式。解决方案是在模板.html中添加MathJax.js引用和配置,以支持LaTeX公式显示。具体操作包括找到MarkdownPDF插件的template.html文件,添加相关JavaScript代码,然后保存并重新使用插件,问题即可得到解决。
最低0.47元/天 解锁文章
7248

被折叠的 条评论
为什么被折叠?



