Support all five types of GitHub admonitions/alerts

Well, once I read the instructions and made the CSS file, it worked. I’ll have to do it in every vault where I want it to take effect though.

Since it wasn’t particularly difficult to implement, I’m sure the Obsidian devs shouldn’t find it a difficult task to integrate something similar natively.

I had to close one note to get it to refresh the colors and symbols completely.

The symbols are slightly smaller than capital letter height in one vault, but slightly larger like your screenshot in another vault. Can’t seem to figure out why. I reset the font choices to defaults (or there were no custom fonts) and reset the theme.

Ah, the base font size setting. It was different between the two vaults. Seems to have a different effect on the text versus the symbols. Or, the symbols have a set size, so they don’t grow or shrink when you change the font size. That seems to be how it works. Wonder if there’s a way to make the symbols more responsive to the text size, since they’re SVG. Probably, but it’s been a long time since I’ve done much with CSS.

Anyway, that was incredibly gracious of you to put that together. Nice job matching the colors and symbols to the GitHub appearance.

Looking at the CSS I’m pretty sure I never could have put that together myself. Not without a lot of help and fiddling around.

1 Like