javalent / admonitions

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

Duplicated icons when using Icon Shortcodes in admonitions #225

Closed corinnekaryiu closed 1 year ago

corinnekaryiu commented 2 years ago

I originally posted this issue on the Icon Shortcodes plugin page (aidenlx/obsidian-icon-shortcodes#37), but it seems like it might be related to the Admonition plugin.

If I add an icon shortcode into an admonition, the icon is added twice.

For example, the code below:

> [!info:]
> - :fas_running: [[Activities]]
> - :far_calendar_plus: [[Planner]]
> - :fas_dumbbell: [[Gym Timetable]]

:fas_running: [[Activities]]
:far_calendar_plus: [[Planner]]

- :fas_dumbbell: [[Gym Timetable]]

> :fas_running: [[Activities]]

Displays like this:

image

At the moment I'm using CSS to hide the second icon, but it would be great if this could be fixed. I understand that the icons work correctly for the new callouts, but I don't yet have access to those.

sigrunixia commented 1 year ago

This should be resolved as the issue was pertaining to the updating rendering of callouts. If the issue is persisting, a new thread can be created.