m-kk_toc/styles.css
m-kk 72e06490bf 🐛 fix: data-integrity and lifecycle bugs found in code review
- TOC section now identified only by heading title match (custom title +
  known aliases), never by list-content heuristics — an ordinary section
  with bullets can no longer be deleted as a false-positive TOC
- insertion position computed from the content string inside vault.process,
  not from stale metadata-cache line numbers — fixes TOC landing inside or
  above frontmatter; manual path writes content first, frontmatter second
- drop lastUpdate timestamp; auto-update is now idempotent (no edit when
  the TOC is unchanged), ending the perpetual modify→update loop
- auto-update no longer touches frontmatter; delete hand-rolled YAML
  serialization (FrontmatterManager) — processFrontMatter is the only
  frontmatter writer
- single EventRef for the modify listener; toggling auto-update off now
  takes effect immediately and repeated saveSettings no longer stacks handlers
- duplicate heading names render as plain text (wikilinks cannot address
  2nd+ occurrences); regex patterns validated in settings UI and compiled
  once per generation (timing-probe pseudo-validation removed)
- remove dead code: TOCEditorExtension, debug command, unused constants
- new command: Remove table of contents (section + frontmatter key)
2026-07-09 22:11:33 -05:00

17 lines
438 B
CSS

/*
Table of Contents Generator Plugin Styles
Modern frontmatter-based TOC with no visible markers.
All TOC visibility is now handled through frontmatter metadata.
Note: This plugin generates standard markdown content (headings and lists).
Styling is minimal to avoid conflicts with themes.
*/
.toc-pattern-errors {
color: var(--text-error);
font-size: var(--font-ui-smaller);
}
.toc-pattern-errors:empty {
display: none;
}