Commit Graph
7 Commits
Author SHA1 Message Date
Jarvis 3fc6219ad1 WIP: Sharp removal changes 2025-09-04 16:32:12 +02:00
AlexKucera 40a3c1b579 Updates eslint and globals dependencies
Updates the eslint and globals dependencies in package.json and package-lock.json.

This change brings in the latest versions of these packages,
potentially including bug fixes, performance improvements, and new
features.
2025-09-04 16:24:36 +02:00
AlexKucera 59f98a7e0f Adds sharp for image processing
Adds the `sharp` library as a dependency.

This library is used for high-performance image processing and will
be used to optimize images.
2025-09-01 10:48:06 +02:00
Jarvis b9fb1a455f feat: add PDF embed support with first-page preview generation
- 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>
2025-08-31 14:39:57 +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 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 57c155d7cd Initial commit 2025-08-29 15:27:09 +02:00