'PyCharm's Markdown rendering is beautiful. Is there a way to save it into a pdf or html file as is?

PyCharm renders Markdown very nicely. It looks awesome. I would like to save the rendered Markdown as PDF or HTML file. When I try to print to PDF or save as HTML, it saves the raw (unrendered) Markdown. I would like to save the rendered Markdown (as PDF or HTML).



Solution 1:[1]

I'm not sure when it was added. But since at most 2021.3, markdown export has been an option.

enter image description here

One thing to note is that this rendering will occur on a white page, while still using color scheme colors. So you may achieve best results by switching to a light theme before rendering the document.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1