Skip to content

Instantly share code, notes, and snippets.

Created Sep 24, 2021
What would you like to do?
Hide Obsidian's fold marker
.CodeMirror-gutter-elt {
display: none;
.CodeMirror-activeline .CodeMirror-gutter-elt {
display: block;

This comment has been minimized.

Copy link
Owner Author

@uphy uphy commented Sep 24, 2021


Obsidian has a feature to fold list items, headings.
The fold marker is always visible.


With this css, fold marker is visible only when the line is active.

How to apply this css

  1. Create directory <your vault dir>/.obsidian/snippets and put the file to the directory.
  2. Enable the css snippet from Obsidian Setting > Appearance > CSS snippets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment