Remove color from text in single brackets in edit mode

When citing sources, single brackets are used to signal own additions or omissions. In edit mode, these are highlighted purpled as if they were links to websites or other notes.

For example the bold parts ("…" and “is”) would be purple in Obsidian’s standard theme:

“One, two, [], fifteen.”

He said Lauren “[is] truly important to the team”.

Is there a way to only highlight the actual links (options/plugins/CSS)?

2 Likes

This happens because in editor mode the format [something](link) is the basic syntax for markdown links. If you write only [something] Obsidian read it as part of a markdown link.
You can try this css snippet, but I’m not sure it won’t have other unwanted effects.

span.cm-link.cm-hmd-barelink {
    color: var(--text-normal);
}
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.