mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-10-01 09:19:34 +05:30
Branding: - All app icons regenerated from the new vector brand kit (M↓ mark): icon.png/icon@2x (app + packaging), favicon.png, tray-icon.png, and the full assets/icons/ size set — generate-icons.js now rasterizes app-icon.svg directly (docico1.png removed) - index.html gets proper favicon/apple-touch links from the kit - Welcome tab hero shows the new mark; README gets the horizontal wordmark - assets/logo.png (ConcreteInfo) intentionally untouched CI release fixes (win/mac jobs were failing): - FiraCode download moved from moving raw/master URLs (hash drifted upstream, tripping the pin) to the immutable 6.2 release asset; repo fonts updated to the pinned 6.2 bits - macOS pandoc extractor locates the binary in the archive instead of assuming a bin/ layout that the macOS zip doesn't have Stray upload archive (markdown-converter-assets (1).zip) excluded.
PanConverter Windows Explorer Context Menu Integration
This directory contains scripts to add PanConverter to the Windows Explorer context menu, allowing you to right-click on files and convert them directly without opening the full application.
Features
Context Menu Options
- Convert with PanConverter: Shows a format selection dialog for any supported file
- PanConverter > Convert to...: Direct conversion options (for Markdown files)
- HTML
- DOCX
- LaTeX
- PowerPoint
Supported File Types
- Markdown:
.md,.markdown - HTML:
.html,.htm - Documents:
.docx,.odt,.rtf - LaTeX:
.tex - PDF:
.pdf - Presentations:
.pptx,.ppt,.odp
Installation Methods
Method 1: Automatic (During PanConverter Installation)
When installing PanConverter using the Windows installer, you'll be prompted to install context menu integration automatically.
Method 2: Manual Installation
Using PowerShell (Recommended)
- Right-click on
install-context-menu.ps1 - Select "Run with PowerShell"
- Follow the prompts (will request administrator privileges)
Using Batch File
- Right-click on
install-context-menu.bat - Select "Run as administrator"
- Follow the prompts
Using Registry File Directly
- Right-click on
install-context-menu.reg - Select "Merge"
- Confirm the registry modification
Uninstallation
Using PowerShell
.\install-context-menu.ps1 -Uninstall
Using Batch File
Run uninstall-context-menu.bat as administrator
Using Registry File
Run uninstall-context-menu.reg
How It Works
Command Line Interface
The context menu integration works by passing command line arguments to PanConverter:
--convert <file>: Shows conversion dialog for the specified file--convert-to <format> <file>: Directly converts to the specified format
Examples
# Show conversion dialog
PanConverter.exe --convert "document.md"
# Direct conversion to PDF
PanConverter.exe --convert-to pdf "document.md"
Conversion Process
- PanConverter reads the input file
- Creates a temporary file if needed
- Uses Pandoc to convert to the target format
- Saves the output in the same directory as the input file
- Shows a Windows notification when complete
Requirements
- PanConverter must be installed in the default location:
%LOCALAPPDATA%\Programs\PanConverter\ - Pandoc must be installed and accessible from the command line
- Administrator privileges required for registry modifications
Troubleshooting
Context Menu Not Appearing
- Ensure you ran the installation script as administrator
- Try logging out and back in, or restart Windows Explorer
- Check if PanConverter is installed in the expected location
Conversion Failures
- Verify Pandoc is installed:
pandoc --version - Check if the input file is not corrupted or locked
- Ensure you have write permissions in the output directory
Permission Errors
- The installation scripts require administrator privileges to modify the registry
- If you get permission errors, right-click and "Run as administrator"
File Descriptions
install-context-menu.reg: Registry entries for context menuuninstall-context-menu.reg: Registry entries removalinstall-context-menu.ps1: PowerShell installation scriptinstall-context-menu.bat: Batch installation scriptuninstall-context-menu.bat: Batch uninstallation scriptnsis-installer.nsh: NSIS installer integration script
Security Note
The scripts modify the Windows registry to add context menu entries. Only run these scripts if you trust the source and understand the changes being made to your system.