CSS Help with Pandoc Citations

I would like to change the color and font size of pandoc-style citations in preview mode. They look like [@citeKey] in edit mode.

In edit mode, I can use

.cm-s-obsidian span.cm-link.cm-hmd-barelink {
	color: green;

In preview mode, however, the citations seem to be normal text within the <p> itself and no way to select it to style it.

Is there some way I can make this work? I’m not really a CSS expert.

1 Like