A Visual Studio Code extension that provides tools to export Markdown files to PDF and Word formats.
- Export Markdown files to PDF with proper table borders and styling
- Export Markdown files to Word (.docx) with proper formatting
- Support for advanced Markdown features (tables, strikethrough, task lists, etc.)
- Translates Markdown content into Chinese with LLM(translategemma is a good model)
- Open a Markdown file in VS Code
- Right-click in the editor or explorer
- Select either "Markdown: Export to PDF" or "Markdown: Export to Word"
- The exported file will be saved in the same directory as the original Markdown file
- Visual Studio Code 1.74.0 or higher
- Download and install pandoc from https://pandoc.org/installing.html.
- for macOS, you can also use Homebrew:
brew install pandoc
- for Linux, you can use your package manager, e.g., for Ubuntu:
sudo apt-get install pandoc
- for Windows, you can use Chocolatey:
choco install pandoc
- Download the
.vsixfile from the releases page - In VS Code, go to the Extensions view (
Ctrl+Shift+X) - Click on the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsixfile - Reload VS Code when prompted
- Clone or download this repository
- Run
npm installin the project directory - Run
vsce packageto create the.vsixfile - Install the generated
.vsixfile following the steps above
- Uses
markdown-pdffor PDF export with custom CSS for table styling - Uses
md-to-docxwithunified,remark-parse, andremark-gfmfor Word export with proper Markdown formatting support - Includes
@mdast2docx/tableplugin for proper table support in Word documents
- Large files may take some time to export
- Complex Markdown extensions may not be fully supported
- Translate markdown content into Chinese with LLM
- Format markdown heading for better pandoc compatibility in Word export
- New command for optimize markdown contents
- Optimized PDF font size for better readability
- Enhanced PDF table border styling with more specific CSS selectors and !important flags
- Improved table appearance in exported PDF documents with better spacing and background colors
- Added alternating row colors for better readability
- Fixed PDF export table rendering issue by adding CSS styles for table borders
- Added proper table styling (borders, padding, background color) for PDF output
- Improved visual appearance of tables in exported PDF documents
- Added remark-gfm support for better Markdown parsing (tables, strikethrough, etc.)
- Integrated @mdast2docx/table plugin for proper table support in Word documents
- Improved Markdown feature support in Word export
Initial release of Markdown Export Tools
- Export Markdown files to PDF
- Export Markdown files to Word with proper formatting using md-to-docx