From 69be84e5ab8754d17b94ec5a60a3a3abcb651bf9 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Thu, 21 Aug 2025 21:20:09 -0500 Subject: [PATCH] Fix TypeScript compilation errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- public/themes-manifest.json | 2 +- src/utils/markdownProcessor.ts | 3 --- src/utils/templateRenderer.ts | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/public/themes-manifest.json b/public/themes-manifest.json index c9b9ae4..7471d4e 100644 --- a/public/themes-manifest.json +++ b/public/themes-manifest.json @@ -14,5 +14,5 @@ "hasMasterSlide": true } }, - "generated": "2025-08-22T02:15:00.761Z" + "generated": "2025-08-22T02:19:52.970Z" } \ No newline at end of file diff --git a/src/utils/markdownProcessor.ts b/src/utils/markdownProcessor.ts index 2d7b59c..2192d89 100644 --- a/src/utils/markdownProcessor.ts +++ b/src/utils/markdownProcessor.ts @@ -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
- headerIds: false, // Don't generate header IDs - mangle: false, // Don't mangle email addresses }); /** diff --git a/src/utils/templateRenderer.ts b/src/utils/templateRenderer.ts index fe83afe..03d7fbf 100644 --- a/src/utils/templateRenderer.ts +++ b/src/utils/templateRenderer.ts @@ -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' ] };