Fix TypeScript compilation errors

- Remove deprecated marked options (sanitize, headerIds, mangle)
- Fix undefined codeExample and diagramExample references in templateRenderer
- Replace with additional markdown sample content
- Ensure clean TypeScript build with no errors

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Michael Mainguy 2025-08-21 21:20:09 -05:00
parent 84b2d233a7
commit 69be84e5ab
3 changed files with 4 additions and 7 deletions

View File

@ -14,5 +14,5 @@
"hasMasterSlide": true
}
},
"generated": "2025-08-22T02:15:00.761Z"
"generated": "2025-08-22T02:19:52.970Z"
}

View File

@ -8,11 +8,8 @@ import DOMPurify from 'dompurify';
// Configure marked for slide-safe markdown
marked.setOptions({
sanitize: false, // We'll handle sanitization with DOMPurify
gfm: true, // GitHub Flavored Markdown
breaks: true, // Convert line breaks to <br>
headerIds: false, // Don't generate header IDs
mangle: false, // Don't mangle email addresses
});
/**

View File

@ -64,9 +64,9 @@ const SAMPLE_CONTENT = {
markdown: [
SAMPLE_MARKDOWN_CONTENT.content,
SAMPLE_MARKDOWN_CONTENT.list,
SAMPLE_MARKDOWN_CONTENT.codeExample,
SAMPLE_MARKDOWN_CONTENT.diagramExample,
'## Key Points\n\n- **Important**: Focus on *customer needs*\n- Use `data-driven` decisions\n- > Success comes from teamwork'
'## Key Points\n\n- **Important**: Focus on *customer needs*\n- Use `data-driven` decisions\n- > Success comes from teamwork',
'### Implementation Steps\n\n1. **Analysis** - Review current metrics\n2. **Strategy** - Define clear objectives\n3. **Execution** - Deploy with *precision*\n\n> Remember: `quality` over quantity',
'## Technical Overview\n\n- Modern **JavaScript** frameworks\n- *Responsive* design principles\n- `API-first` architecture\n\n**Next Steps**: Begin development phase'
]
};