Commit Graph
14 Commits
Author SHA1 Message Date
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 cca5c0210b feat: implement comprehensive markdown preprocessor for obsidian syntax (task 4)
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>
2025-08-29 17:59:47 +02:00
Jarvis 7312575588 feat: implement dependency checker and external tool management (task 3)
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>
2025-08-29 17:41:42 +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 50c47a3cc7 Excludes Serena cache directory from Git tracking
Prevents accidental inclusion of the Serena cache directory in Git repositories.
Removes a specific document symbols cache file.
2025-08-29 17:12:46 +02:00
AlexKucera ca587f8363 Adds initial Serena setup and memories
Initializes project with core configuration files.

Adds memories for code style conventions, codebase structure,
development guidelines, project overview, suggested commands,
task completion checklist, and tech stack.
These memories will help guide development and ensure consistency.
2025-08-29 17:04:31 +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 c315d31011 Original PRD
Introduces a product requirements document (PRD) for the Obsidian Typst PDF Export plugin.

The PRD outlines the plugin's goals, core features, technical architecture, user experience, implementation phases, and success metrics. It also covers technical considerations, future enhancements, risks, and appendices detailing Obsidian syntax support, template variables, and CSS to Typst mapping examples.
2025-08-29 16:26:38 +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
AlexKucera a3c430183e Initial Setup
Sets up the basic structure for an Obsidian plugin
designed to export notes to Typst-generated PDFs.

This commit includes:
- Initial plugin manifest and configuration.
- Placeholder plugin class and settings.
- Basic .gitignore to exclude common files.
- Claude.md file to guide Claude AI on development

Task Master is imported for dev workflow.
2025-08-29 16:23:28 +02:00
AlexKucera 57c155d7cd Initial commit 2025-08-29 15:27:09 +02:00