This VSCode extension adds a "Preview" button to the editor title when editing Markdown files. Upon clicking the "Preview" button, a webview will open displaying the rendered Markdown content. Additionally, while viewing the rendered Markdown, you can download the previewed content as a PDF file by clicking the "Download" button in the top right corner.
Features
Preview Button: A "Preview" button appears in the editor title bar when editing a Markdown file.
Markdown Webview: Clicking the "Preview" button opens a webview displaying the rendered Markdown.
Download as PDF: When viewing the Markdown preview, you can download the rendered content as a PDF file via the "Download" button in the top-right corner of the preview.
Installation
Open VSCode.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
Search for Markdown Preview with PDF Download.
Click Install.
Usage
Open a Markdown file in VSCode.
Once the file is open, you'll see a Preview button in the editor's title bar.
Click the Preview button to open a webview displaying the rendered Markdown.
In the webview, you'll see a Download button in the top-right corner.
Click the Download button to save the rendered Markdown as a PDF file to your local machine.
Key Commands
Markdown Preview: Open the preview for the current Markdown file (activated by the "Preview" button).
Download PDF: Download the current Markdown preview as a PDF (available in the preview view).
Known Issues
The Download PDF feature may not be available in all environments.
The extension currently supports only basic Markdown features for rendering.
Contributing
Feel free to contribute! If you encounter any issues or have suggestions, please create an issue or submit a pull request.