feat(markdown): add email block support for Obsidian to Typst conversion

- Implement email block detection and parsing in MarkdownPreprocessor
- Convert Obsidian email blocks to Typst #email-block() function calls
- Add Pandoc raw blocks wrapper for proper Typst code execution
- Import email-block function in universal wrapper template
- Disable smart quotes with --from markdown-smart flag

Fixes email blocks appearing as plain text in PDF exports

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-01 20:34:43 +02:00
1 parent 00292f8146
commit a60b2a8efd
4 files changed
+167 -7

No files matched your search

+3
View File
@@ -258,6 +258,9 @@ args.push(inputPath);
// Output file
args.push('-o', outputPath);
// Specify input format as markdown with smart extension disabled
args.push('--from', 'markdown-smart');
// Set PDF engine to Typst (use configured path if available)
if (this.pandocOptions.typstPath) {
args.push(`--pdf-engine=${this.pandocOptions.typstPath}`);