-
1.3.1 Stable
released this
2025-11-09 15:26:45 +01:00 | 7 commits to master since this releaseObsidian Typst PDF Export 1.3.1
Added
- Unit tests for core functionalities with comprehensive test coverage
- YAML parsing support (js-yaml) for enhanced frontmatter and configuration handling
- Extensive docstrings throughout codebase for improved maintainability
- Config directory existence check for enhanced error handling
- Remote Image Download: Automatic download and embedding of remote images (http:// and https:// URLs) during export. Works with both wikilink-style embeds
![[https://...]]and standard markdown images. Falls back to placeholder text if download fails (10-second timeout) - Windows Compatibility: Comprehensive Windows executable detection with platform-specific extensions (.cmd, .bat, .ps1, .exe)
- Dynamic Image Format Support: FileDiscovery now supports multiple image formats (.png, .jpg, .jpeg, .webp, .gif, .bmp, .tiff)
- Enhanced Pattern Matching: Five-strategy file discovery system for robust PDF-to-image conversion output detection
- Cross-Platform Font Discovery: Platform-specific PATH building for improved Typst executable and font detection
- Improved Plugin Isolation: TempDirectoryManager now uses proper plugin namespacing to prevent conflicts
Fixed
- Path doubling issues in directory creation and file operations
- Executable path resolution on Windows for better cross-platform compatibility
- Bibliography errors by properly handling YAML parsing conflicts
- Image download order to ensure correct processing sequence
- Images without extensions now handled correctly
- Windows Absolute Path Handling: Fixed ENOENT errors on Windows caused by improper path joining when combining vault paths with plugin directories. PathUtils.joinPath() now properly detects and handles absolute paths using path.isAbsolute() to prevent invalid path construction like
C:\MyVault\C:\MyVault\... - Remote URL Image Handling: Fixed ENOENT errors when markdown contains remote image URLs. Remote images are now automatically downloaded and embedded, with graceful fallback to placeholder text if download fails
- Cross-Platform Binary Discovery: BinaryLocator now includes comprehensive fallback paths for different installation methods
- Vault-Relative Path Consistency: Fixed all vault.adapter operations to use proper vault-relative paths instead of absolute paths
- Resource Path Resolution: Removed extra quotes from Pandoc arguments that could break spawn commands on Windows
- Font Cache Corruption Recovery: Enhanced error handling with automatic cache regeneration and validation
- Template Path Resolution: Fixed resource path handling in PandocCommandBuilder for better cross-platform compatibility
Changed
- Node.js requirement updated to version 18.20+ for latest LTS support
- Logging improvements: replaced 'info' with 'debug' for better log level hierarchy
- Path normalization simplified for Windows compatibility
- Refactored path handling throughout codebase for consistency and reliability
- Applied Obsidian linter rules and fixed code quality issues
- Standardized terminology and error handling across modules
- Automated cleanup with async lifecycle handling for better resource management
- Enhanced Error Recovery: Improved fallback mechanisms and graceful degradation throughout font and file discovery systems
- Platform Detection: Added platform awareness to caching systems for better cross-platform consistency
- Code Quality: Improved type safety, error handling, and validation across all affected modules
- Performance: Optimized file discovery with progressive pattern matching strategies
Security
- Sanitizes frontmatter to prevent data leakage in exports
- Rejects absolute paths in vault exports for improved security
- Restricts shell metacharacters in paths to prevent injection attacks
- Strengthens path validation against reserved names and reserved filesystem names
- Enhanced cleanup ensures proper resource disposal
- Path Validation: Enhanced path sanitization and validation for all file system operations
- Process Spawning: Improved security in font discovery and binary execution with proper argument handling
Installation
Automatic Installation (Community Plugins) - Plugin still waiting for approval
Search for "Typst PDF Export" in Obsidian's Community Plugins tab.
Manual Installation
- Download the
typst-pdf-export.zipfile from this release - Extract the ZIP file to your vault's plugins directory:
VaultFolder/.obsidian/plugins/typst-pdf-export/ - Make sure the
templates/directory is included - Reload Obsidian
- Enable the plugin in Settings → Community Plugins
Requirements
- Pandoc
- Typst
- ImageMagick (for enhanced image processing)
Files in this release
main.js- Plugin code with embedded templatesmanifest.json- Plugin metadatastyles.css- Plugin stylestypst-pdf-export.zip- Complete package with templates directory
Downloads