Jarvis
|
86a339197f
|
refactor: extract CalloutProcessor from MarkdownPreprocessor
- Create CalloutProcessor.ts with comprehensive callout and email block processing
- Extract 10 methods with complete implementations (~350 lines):
- processCallouts/processEmailBlocks (main entry points)
- processMultiLineCallouts/extractCalloutBlock/convertCalloutToTypstFormat
- processEmailBlock/parseEmailYaml (email block processing)
- escapeQuotes/escapeBodyForTypst (string escaping utilities)
- filterUnnecessaryLinks (link filtering)
- Update MarkdownPreprocessor.ts to delegate to CalloutProcessor
- Remove extracted methods and unused pattern constants
- Reduce MarkdownPreprocessor from 653 to 346 lines (307 line reduction)
- Maintain full backward compatibility through delegation pattern
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-09-09 22:22:17 +02:00 |
|