vscode-markdown-preview-enhanced
vscode-markdown-preview-enhanced copied to clipboard
Help: How to export a PDF that looks exactly like the preview?
At first, thank you very much for this great extension! I am using it nearly on a daily basis. It's ingenious how comfortable it is to see changes immediately as you type the markdown code.
This is neither a bug report nor a feature request. I just would like to ask for assistance regarding the following problem:
I have installed the extension in VS Code for Windows, and I am always happy with the preview. However, I am not able to generate a PDF file that looks similar to the preview; the PDF files are just ugly compared to the preview.
I have tried all methods with the same outcome: Open in browser and then save the PDF from there; generate PDF via Export -> Puppeteer; generate PDF via Export -> PDF (Prince); generate PDF via Export -> Pandoc. While all those methods rendered the PDF file slightly differently, no variant was near acceptable; the same goes for the rendering in the browser. In contrast, the preview itself looks really pretty.
Could somebody please tell step by step what exactly I have to do to generate a PDF that looks exactly (or as close as possible) like the preview itself?
I thought about CSS media queries with their own style, but I wasn't able to spot the default style for the preview. If I would know where it is, I could eventually copy it into a media query section and see how PDFs are generated afterwards.
Thank you very much for any ideas in advance.