mirror of
https://github.com/grmartin/obsidian-toc-block-plugin.git
synced 2026-07-22 08:33:49 +00:00
Bootstraps from the official Obsidian sample plugin template and implements Typora-style [TOC] tag rendering: configurable marker/regex detection, per-mode display (links/hidden) across Live Preview, Reading View, and PDF export, insert command + context menu item, adn live sync with the metadata cache as headings change.
21 lines
375 B
CSS
21 lines
375 B
CSS
.toc-block-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.toc-block-placeholder {
|
|
padding: var(--size-4-2) var(--size-4-3);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.toc-block-empty {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.toc-block-list,
|
|
.toc-block-live-preview ul {
|
|
margin: 0;
|
|
}
|