Commit Graph
11 Commits
Author SHA1 Message Date
AlexKucera e80ccca966 Marks tasks as done in taskmaster
Updates the taskmaster task list to reflect completed tasks.
This ensures that the task statuses are correctly tracked.
2025-08-31 14:45:19 +02:00
Jarvis 0d81bb31b4 feat: implement CSS extraction and style preservation system (task 8)
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>
2025-08-29 23:23:35 +02:00
Jarvis 83b52c6f41 feat: implement export configuration modal (task 7)
Add comprehensive ExportConfigModal class extending Obsidian Modal
with full UI for PDF export configuration including:

- Export mode selection (current note, note with dependencies, collection)
- Format selection (PDF via Pandoc+Typst, Typst source export)
- Template management with predefined and custom options
- Output settings (filename patterns, destination paths)
- Page configuration (size, orientation, margins)
- Typography settings (fonts, sizes, spacing)
- Real-time validation with visual feedback
- Settings persistence with recent export tracking
- Progress indicator with cancellation capability
- Professional CSS styling for modal appearance

Implements Task 7 and all 5 subtasks (7.1-7.5) from TaskMaster.

Note: Modal implementation complete but not yet connected to
export commands - handleExportWithDependencyCheck still shows
placeholder message and needs integration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 23:07:10 +02:00
AlexKucera 58e0558903 Completes task implementation
Marks several tasks and subtasks as complete, indicating that the implementation phase for these features is finished.
The completed tasks include dependency checking, callout conversion, and pandoc execution enhancements.
2025-08-29 22:52:35 +02:00
Jarvis a4a13e4aeb feat: implement typst template system with validation (task 6)
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>
2025-08-29 22:45:07 +02:00
Jarvis c31550920d feat: implement pandoc-typst conversion pipeline (task 5)
Implements core conversion logic from processed markdown to PDF via Pandoc
and Typst. Creates a robust pipeline with proper error handling, progress
tracking, and cleanup mechanisms.

Key features:
- PandocTypstConverter class with child_process.spawn for execution
- Comprehensive argument building for templates, variables, and options
- Temporary file management with automatic cleanup
- Timeout handling for large document processing
- Progress tracking and error message extraction
- Support for both direct PDF and intermediate .typ file generation

Technical details:
- Uses spawn instead of exec for better control and streaming
- Implements proper cleanup handlers for process termination
- Supports Pandoc 3.x API with --pdf-engine=typst
- Cross-platform compatible with proper path handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 22:34:36 +02:00
AlexKucera 6e1b8f38ad Updates task statuses in tasks.json
Reflects completion of MarkdownPreprocessor tasks.
Specifically, marks the initial class creation,
wikilink parsing, embed parsing, and frontmatter
processing tasks as 'done'. Also, marks callout
parsing as 'in-progress'. Updates the timestamp
for the task list.
2025-08-29 22:26:31 +02:00
Jarvis 06c48fda86 feat: implement comprehensive settings interface and validation system (task 2)
- Add complete TypeScript interfaces for plugin configuration:
  - ExportMode and ExportFormat enums for type safety
  - Template interface for Typst template management
  - ExportConfig interface for per-export configurations
  - Comprehensive obsidianTypstPDFExportSettings interface
- Implement robust settings persistence with validation and migration
- Replace placeholder settings UI with full Obsidian Setting API implementation:
  - External tools configuration (Pandoc/Typst paths, output folder)
  - Export defaults (template, format, mode selection)
  - Typography settings (font families and sizing)
  - Page setup controls (size, orientation, margins)
  - Behavior toggles (auto-open, folder structure preservation)
- Add DEFAULT_SETTINGS with sensible defaults for all configuration options
- Implement validateSettings() and migrateSettings() for data integrity

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 17:24:20 +02:00
AlexKucera 2f242b4c5e Initializes plugin structure
Sets up the foundational structure for the Obsidian Typst
PDF Export plugin.

Removes sample plugin code and fixes initial TypeScript type
declarations, establishing a clean starting point.

Configures the plugin manifest and settings infrastructure,
laying the groundwork for future development.

Adds task complexity report.
2025-08-29 17:04:15 +02:00
Jarvis ca729e5037 feat: clean up template code and establish plugin foundation (task 1)
- Fix TypeScript type inconsistencies in main.ts
- Remove sample template components (SampleModal, sample commands)
- Replace sample settings tab with TypstPDFExportSettingTab
- Update package.json metadata to reflect actual plugin identity
- Add basic plugin structure with export command and ribbon icon
- Clean up template comments and unused imports

This establishes a clean foundation for implementing Typst PDF export
functionality by removing all sample plugin template code and setting
up proper plugin structure with placeholder functionality.

Addresses all subtasks in task 1 (1.1-1.5) from project roadmap.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 17:03:34 +02:00
AlexKucera 08896fde48 Initializes Taskmaster AI project
Sets up the core structure and configuration
files for the Taskmaster AI project, including agents,
commands, configurations, and a project-specific
Claude integration guide.
2025-08-29 16:24:40 +02:00