Target * and ** in CSS

How do I target this and this in CSS?

How do I target *this* and **this** in CSS?

image

em {
    background: yellow;
}

strong {
    background: pink;
}
3 Likes

Thank you ! :slight_smile:

1 Like

I was not clear, I wanted it in ā€˜Source modeā€™ so now when I knew what to search for I found this:

.cm-s-obsidian .cm-strong and .cm-em

Btw, what does ā€˜.cm-s-obsidianā€™ mean for and why do I need to use ā€˜.cm-ā€™, is there some documentation on this?

Hi haffy, Iā€™m glad you were able to find what you were looking for.

I donā€™t know where the documentation is, but I believe the ā€œcmā€ means ā€œCodeMirrorā€, the text editing package that Obsidian uses.

1 Like

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