Comprehensive fix for 26+ TypeScript compilation errors to enable successful builds:
- Update tsconfig.json: Add ES2015/ES2017 libs for iterator support
- Add missing type exports: Create central export location in CSSExtractor.ts
- Fix interface definitions: Add optimizeForPrint to MappingOptions
- Fix access modifiers: Make mapCSSProperty public in CSSToTypstMapper
- Add missing methods: getEnhancedThemeProfile and extractThemeStyles to PopularThemeSupport
- Fix null/undefined type issues: Update return types for proper TypeScript compliance
- Fix NodeList iteration: Convert to Array.from() for ES6 iterator compatibility
- Fix template validator: Resolve condition logic and index signature errors
All TypeScript compilation errors are now resolved while maintaining code functionality.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Implement image embed processing similar to PDF embed handling
- Add marker-based preprocessing for async image resource handling
- Support all three Obsidian image linking patterns:
- Shortest path (filename only): ![[auf_der_couch.png]]
- Note-relative paths: ![[2023-05-04.../image.jpeg]]
- Vault-relative paths: ![[../attachments/image.webp]]
- Add automatic WebP to PNG conversion using ImageMagick
- Copy images to vault temp directory for Typst accessibility
- Handle multiple path resolution strategies with fallback options
- Add comprehensive error handling and logging for image processing
Resolves image export issues where only text was included in PDF exports.
Images are now properly resolved, copied, and converted as needed for
Typst compatibility.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Implement PdfToImageConverter using pdf-to-img CLI for PDF-to-image conversion
- Add PDF embed detection and processing in MarkdownPreprocessor
- Generate first-page preview images for PDF embeds in exported documents
- Copy generated images to vault location for Typst accessibility
- Add --embed-resources flag to Pandoc for proper resource embedding
- Support both image and PDF attachments in exported documents
Fixes issue where PDF exports only contained text without attachments.
PDF embeds now show visual previews like Obsidian's native behavior.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Reorder processing steps: embeds first, then wikilinks
- Prevents ![[image.jpg]] from becoming 
- Ensures image filenames remain correct for Pandoc/Typst resolution
This fixes the core issue where image files were getting .md extensions
appended, causing Typst to look for non-existent .md files instead of
the actual image files.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Run Pandoc from vault directory for proper path resolution
- Add --resource-path arguments for attachment directories
- Use absolute template paths when working directory is vault
- Preserve relative attachment paths in MarkdownPreprocessor
- Support common attachment folder structures (attachments/, assets/, files/, images/)
Fixes issue where exported PDFs only contained text without embedded images/attachments.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Complete implementation of comprehensive CSS extraction system for
theme-aware Typst PDF exports:
- CSSExtractor.ts: Core DOM style extraction with theme detection
- CSSToTypstMapper.ts: CSS to Typst property conversion with color parsing
- ThemeManager.ts: Theme-specific variable handling for popular themes
- PopularThemeSupport.ts: Enhanced support for Minimal, Blue Topaz, Sanctum
- PluginSpecificStyleHandler.ts: Style extraction for Dataview, Templater, etc
- HybridExportMode.ts: Main integration system with conflict resolution
- Updated index.ts to export all new components and types
System supports automatic theme detection, CSS variable extraction,
plugin-specific styling, and hybrid export modes with configurable
conflict resolution strategies.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Adds comprehensive template management system for Typst PDF export:
• TemplateManager: Built-in and custom template support with 4 embedded templates
• TemplateSubstitution: Variable processing with Typst character escaping
• TemplateValidator: Syntax validation, structure checks, and feature detection
• Complete TypeScript type definitions for template system
Supports Typst 0.11+ features and provides robust error handling.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add MarkdownPreprocessor class with full Obsidian syntax conversion:
- Convert wikilinks [[file#heading|alias]] to standard markdown links
- Process embeds ![[file]] with size parameters and file type detection
- Transform callouts to enhanced blockquotes with CSS class markers
- Extract and preserve frontmatter using gray-matter library
- Enhanced tag extraction from content and frontmatter
- Comprehensive error handling and warnings system
- Optimized for Pandoc → Typst conversion pipeline
Validated against Pandoc documentation for maximum compatibility.
All preprocessing outputs standard markdown that Pandoc processes
efficiently for high-quality PDF generation via Typst.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive dependency checking system for external tools:
- Create DependencyChecker class with cross-platform executable detection
- Implement version validation for Pandoc (3.0.0+) and Typst (0.11.0+)
- Add timeout handling and robust error management for external processes
- Integrate dependency checking with plugin lifecycle and settings interface
- Create DependencyStatusModal with detailed status display and installation guides
- Add platform-specific installation instructions (Windows/Mac/Linux)
- Include user-friendly error messages and troubleshooting guidance
- Add dependency status section to settings with "Check Dependencies" button
- Style dependency modal with Obsidian theme-aware CSS
- Update TypeScript config to exclude reference files from compilation
The dependency checker provides non-blocking startup validation,
export workflow integration, and comprehensive user guidance for
missing or outdated external tools.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>