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