javalent / admonitions

Adds admonition block-styled content to Obsidian.md
MIT License
1.05k stars 67 forks source link

Callout custom colors do not work #252

Closed feedhopper closed 1 year ago

feedhopper commented 1 year ago

First of all: GREAT plugin, great functionality, great that it's been implemented in Obsidian.

Unfortunately, using the callout function does not properly work for me - custom colors default to blue, and the note icon is shown instead of the one I picked - even though the custom title is inserted.

In admonition mode, the custom colors are rendered properly Is there any chance to fix this? I would much prefer to use callouts.

oldjove commented 1 year ago

I'm experiencing this too. It's not all the time though. I have custom callouts that work fine but then others that default to blue. Not sure why this is.

valentine195 commented 1 year ago

Is it callouts in other windows, or does it happen in the main window?

oldjove commented 1 year ago

I've just experienced it in the main window.

oldjove commented 1 year ago

@feedhopper @valentine195 , I seem to have worked out the problem. I discovered that the callout wasn't working because I capitalized the "admonition type". Looks like this needs to be lower case for the colour and icon to work properly. Bug or feature?

sigrunixia commented 1 year ago

This was fixed in #295