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>
This commit is contained in:
10 files changed
+1943
-265
No files matched your search
+2
-1
@@ -28,6 +28,7 @@
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"gray-matter": "^4.0.3"
|
||||
"gray-matter": "^4.0.3",
|
||||
"pdf-to-img": "^4.5.0"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user