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

Massive block of random style code in the generated html #164

Open robodreamer opened 5 years ago

robodreamer commented 5 years ago

With the updated version, suddenly a very large block of single-line style appears in the generated html file. It seems this is a bug and has to be fixed asap... image

snpz commented 4 years ago

I just saw the same behaviour when exporting to html - I wondered why the file would be 1 MB with a few lines of Markdown. I had a quick look at the code and as far as I can see this is due to the added mermaid support. The Javascript (not css/style) source code for the module is included directly in the .html file - no matter if the feature is used or not.

robodreamer commented 4 years ago

Can this bug be resolved soon? We have a html document relying on your package and this issue has slowed down the development a lot since we now have to manually edit the html file.