Commit graph

3 commits

Author SHA1 Message Date
m-kk
7cdebd6127 🐛 fix: address Obsidian community plugin review requirements 2025-11-06 18:37:12 -06:00
m-kk
24fdcc80ee 🐛 fix: address Obsidian community plugin review requirements
- Replace space literals with {2} quantifiers in regex patterns for clarity
- Add void operator to unhandled promises in callbacks
- Convert all UI text to sentence case per Obsidian guidelines
- Replace console.log with console.debug for debug output
- Remove unnecessary await of non-Promise value
- Replace 'any' types with 'unknown' for type safety
- Fix Promise returned where void expected in debounce
- Remove unnecessary escape characters in regex patterns
- Remove async keyword from non-async method insertOrUpdateTOC
- Replace HTML heading elements with Setting().setHeading() API

All changes address required fixes from ObsidianReviewBot automated review.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 17:04:07 -06:00
m-kk
6c30ef79eb 🚀 feat: initial release of Table of Contents Generator v1.0.0
Complete Obsidian plugin for generating clean, trackable table of contents using frontmatter metadata. Features invisible TOC markers, smart H1-aware positioning, automatic updates, and comprehensive configuration options.

Key Features:
- Invisible frontmatter-based TOC tracking (no HTML markers)
- Smart positioning after last H1 or document start
- Surgical content updates preventing cursor jumps
- Pre-compiled regex patterns (75% performance improvement)
- Comprehensive ReDoS protection against malicious patterns
- Auto-update with debounced change detection
- Configurable heading depth, exclusion patterns, and links
- Modern TypeScript architecture with strict type checking
- Service-oriented design with clean separation of concerns

Security & Performance:
- Enhanced ReDoS protection (10+ dangerous patterns)
- Memory-efficient operations with proper cleanup
- Single-pass DOM operations and optimized caching
- Modern build system with esbuild 0.25.9

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 15:03:32 -05:00