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>
This commit is contained in:
3 files changed
+850
-3
No files matched your search
+10
-1
@@ -8,7 +8,13 @@
|
||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
},
|
||||
"keywords": ["pdf", "export", "typst", "obsidian-plugin", "typesetting"],
|
||||
"keywords": [
|
||||
"pdf",
|
||||
"export",
|
||||
"typst",
|
||||
"obsidian-plugin",
|
||||
"typesetting"
|
||||
],
|
||||
"author": "Alexander Kucera",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
@@ -20,5 +26,8 @@
|
||||
"obsidian": "latest",
|
||||
"tslib": "2.4.0",
|
||||
"typescript": "4.7.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"gray-matter": "^4.0.3"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user