javalent / admonitions

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

[Bug] : Icon parameter is not parsed in admonitions block #277

Closed gnosthi closed 1 year ago

gnosthi commented 1 year ago

Descpription: Icon parameter does not seem to have an effect on the admonition. Obsidian Version: 1.0.3 Admonitions Version: 9.0.5 OS: GNU/Linux Ubuntu 20.04 Kernel: 5.15.0-46-generic

Icon packs are installed and was done via the Admonitions Plugin settings page. This affects icons from all icon packs.

Reproduction

  1. Download and install admonitions plugin
  2. Enable admonitions plugin
  3. Download icon packs via settings page
  4. Enable Icon packs
  5. Create a new note
  6. create an admonition block
  7. set icon with using icon: parameter.
  8. exit out of the admonitions block

Also tested using 'read' mode as well.

Example:

```ad-quote
collapse: false
icon: calendar-24

This is a test

Yields the following 

![image](https://user-images.githubusercontent.com/17650528/204895586-158f1b39-14ad-46c6-bb47-9f30811a4a78.png)

This issue affects ***all*** icon packs.