Skip to content

Instantly share code, notes, and snippets.

@jparise
Created August 24, 2024 17:57
Show Gist options
  • Save jparise/4ced2f3ee6e58817b8d9647711636e24 to your computer and use it in GitHub Desktop.
Save jparise/4ced2f3ee6e58817b8d9647711636e24 to your computer and use it in GitHub Desktop.
Obsidian Headlines - Collapsed Markdown
:not(.cm-formatting).cm-header-1:before {
content: '› ';
}
:not(.cm-formatting).cm-header-2:before {
content: '›› ';
}
:not(.cm-formatting).cm-header-3:before {
content: '››› ';
}
:not(.cm-formatting).cm-header-4:before {
content: '›››› ';
}
:not(.cm-formatting).cm-header-5:before {
content: '››››› ';
}
:not(.cm-formatting).cm-header-6:before {
content: '›››››› ';
}
.cm-header:before {
color: var(--text-faint);
}
.cm-active.cm-line .cm-header-1:before,
.cm-active.cm-line .cm-header-2:before,
.cm-active.cm-line .cm-header-3:before,
.cm-active.cm-line .cm-header-4:before,
.cm-active.cm-line .cm-header-5:before,
.cm-active.cm-line .cm-header-6:before {
content: '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment