yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

trust option for katex to show an image in html #1398

Open labradorpeter opened 8 months ago

labradorpeter commented 8 months ago

To see an image (jpg) in an exported html katex needs its trust-option to be set to true. The <img ...\img> is in the exported html. But katex.js suppresses the access to the png file. Preview in vscode shows the png. Katex wants all options as a parameter in katex.render: { trust: true } But I can't find katex.render I suppose there has to be a Markdown command to do that.

Peter

Other information

labradorpeter commented 8 months ago

There is a simple solution. Don# Don't use 'absolute img path' in the settings of the extension.

yzhang-gh commented 8 months ago

Hi, sorry for the late reply. So it seems that you already found a workaround?