mirror of
https://github.com/m-kk/toc.git
synced 2026-07-22 06:44:17 +00:00
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>
27 lines
334 B
Text
27 lines
334 B
Text
# vscode
|
|
.vscode
|
|
|
|
# Intellij
|
|
*.iml
|
|
.idea
|
|
|
|
# npm
|
|
node_modules
|
|
|
|
# Don't include the compiled main.js file in the repo.
|
|
# They should be uploaded to GitHub releases instead.
|
|
main.js
|
|
|
|
# Exclude sourcemaps
|
|
*.map
|
|
|
|
# obsidian
|
|
data.json
|
|
|
|
# Exclude macOS Finder (System Explorer) View States
|
|
.DS_Store
|
|
|
|
# for public
|
|
AGENTS.md
|
|
CLAUDE.md
|
|
docs/
|